Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RF+BF: return full .dot_git path if .git is not subpath
In my previous refactoring, while reading the old get_git_dir implementation that path would always be relative (since ".git" was returned etc). But it did resolve symlinks and read links from .git file. This change does not necessarily makes it match 100% old behavior, since we would still return relative it if it points e.g. somewhere under .git somehow, but as for the target need of discovering .git location I think it should be functionally equivalent (I would have even stripped maybe_relative completely).
- Loading branch information