# Creating documentation when remote name is not \`origin\`

**URL:** <https://discourse.julialang.org/t/creating-documentation-when-remote-name-is-not-origin/110466>\
**Category:** General Usage\
**Tags:** documenter\
**Created:** [February 20, 2024, 5:35pm UTC](https://discourse.julialang.org/t/creating-documentation-when-remote-name-is-not-origin/110466 "2024-02-20T17:35:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![phx](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phx/32/219940_2.png) [@phx](https://discourse.julialang.org/u/phx)\
**Post date:** [February 20, 2024, 5:35pm UTC](https://discourse.julialang.org/t/creating-documentation-when-remote-name-is-not-origin/110466/1 "2024-02-20T17:35:17Z")

</div>

Hello everyone,

I’m trying to use Documenter to build the documentation for a package I wrote. Everything builds fine, but every time I run `julia --project make.jl` the following warning appears:

```julia
┌ Warning: Unable to determine HTML(edit_link = ...) from remote HEAD branch, defaulting to "master".
│ Calling `git remote` failed with an exception. Set JULIA_DEBUG=Documenter to see the error.
│ Unless this is due to a configuration error, the relevant variable should be set explicitly.
└ @ Documenter /opt/julia/packages/Documenter/1HwWe/src/utilities/utilities.jl:712

```

Digging through Documenter’s code, it seems to me that this warning originates from the `getremote` function, in `src/utilities/utilities.jl`, line 502.  
This function tries to call `git config --get remote.origin.url`, and here’s my problem: I have renamed the remote of my git repository as `github`, so that command exits with an error (exit status 1). In fact, running `git config --get remote.github.url` returns the remote URL as expected (and with an exit status of 0).

Apart from renaming the remote back to `origin`, is there a way to make Documenter work in my situation? I can’t find a way to tell Documenter the correct name of the remote.

---

<div class="post-metadata">

**Author:** ![mnemnion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mnemnion/32/206596_2.png) [@mnemnion](https://discourse.julialang.org/u/mnemnion)\
**Post date:** [February 23, 2024, 10:19pm UTC](https://discourse.julialang.org/t/creating-documentation-when-remote-name-is-not-origin/110466/2 "2024-02-23T22:19:13Z")

</div>

I don’t believe this issue is Documenter-specific, try following some of the [advice here](https://stackoverflow.com/questions/18801147/changing-the-git-remote-push-to-default) and see if that gets it working for you.

---

<div class="post-metadata">

**Author:** ![RomeoV](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/romeov/32/37687_2.png) [@RomeoV](https://discourse.julialang.org/u/RomeoV)\
**Post date:** [May 25, 2024, 8:27am UTC](https://discourse.julialang.org/t/creating-documentation-when-remote-name-is-not-origin/110466/3 "2024-05-25T08:27:08Z")

</div>

I ran into the same and made a PR to fix this: [Allow for remote names other than `origin`. by RomeoV · Pull Request #2509 · JuliaDocs/Documenter.jl · GitHub](https://github.com/JuliaDocs/Documenter.jl/pull/2509)
