summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2017-12-07 08:59:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-07 16:09:06 (GMT)
commit176b2d328ccc305aa2e565c39ad7b0fb24099275 (patch)
tree15e1149599e9c2898fd980c51fba8e9fed72895b /setup.c
parent9752ad0bb79f680bca48db7adc45338b298304b0 (diff)
downloadgit-176b2d328ccc305aa2e565c39ad7b0fb24099275.zip
git-176b2d328ccc305aa2e565c39ad7b0fb24099275.tar.gz
git-176b2d328ccc305aa2e565c39ad7b0fb24099275.tar.bz2
setup.c: fix comment about order of .git directory discovery
Since gitfiles were introduced in b44ebb19e (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 <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index 8f64fbd..caab366 100644
--- a/setup.c
+++ b/setup.c
@@ -882,7 +882,7 @@ static const char *setup_git_directory_gently_1(int *nongit_ok)
* - ../.git
* - ../.git/
* - ../ (bare)
- * - ../../.git/
+ * - ../../.git
* etc.
*/
one_filesystem = !git_env_bool("GIT_DISCOVERY_ACROSS_FILESYSTEM", 0);