Fix docs builds when not in Git tree (#54445)
The documentation builds can fail if the Julia source code is not
properly in a Git repo (tarballs, Buildkite). This should ensure that
Documenter knows which remote repository corresponds to the Julia source
tree.
Hopefully will fix https://github.com/JuliaCI/julia-buildkite/issues/336