diff options
author | Brandon Williams <bmwill@google.com> | 2017-06-14 11:07:37 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-15 12:56:22 -0700 |
commit | d3fb71b3cb36971608a46744261e6b5f8802e784 (patch) | |
tree | 809de18f72641a2fd76a3ce00c5a7207a4afc3e9 /Documentation/pretty-formats.txt | |
parent | config: don't include config.h by default (diff) | |
download | tgif-d3fb71b3cb36971608a46744261e6b5f8802e784.tar.xz |
setup: teach discover_git_directory to respect the commondir
Currently 'discover_git_directory' only looks at the gitdir to determine
if a git directory was discovered. This causes a problem in the event
that the gitdir which was discovered was in fact a per-worktree git
directory and not the common git directory. This is because the
repository config, which is checked to verify the repository's format,
is stored in the commondir and not in the per-worktree gitdir. Correct
this behavior by checking the config stored in the commondir.
It will also be of use for callers to have access to the commondir, so
lets also return that upon successfully discovering a git directory.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/pretty-formats.txt')
0 files changed, 0 insertions, 0 deletions