Skip to content

Commit 176b2d3

Browse files
szedergitster
authored andcommitted
setup.c: fix comment about order of .git directory discovery
Since gitfiles were introduced in b44ebb1 (Add platform-independent .git "symlink", 2008-02-20) the order of checks during .git directory discovery is: gitfile, gitdir, bare repo. However, that commit did only partially update the in-code comment describing this order, missing the last line which still puts gitdir before gitfile. Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9752ad0 commit 176b2d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ static const char *setup_git_directory_gently_1(int *nongit_ok)
882882
* - ../.git
883883
* - ../.git/
884884
* - ../ (bare)
885-
* - ../../.git/
885+
* - ../../.git
886886
* etc.
887887
*/
888888
one_filesystem = !git_env_bool("GIT_DISCOVERY_ACROSS_FILESYSTEM", 0);

0 commit comments

Comments
 (0)