X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=setup.c;h=dda67d268dcacce2293d245395a38106860fb881;hb=3ddad98b74924d76116d05e7601ab1e163d68500;hp=e9d3f5aab63225df7f1b495a19740408d23973a8;hpb=3eee9c6dbebcf6341ad202f7dd4d416ef3fcba5e;p=git.git diff --git a/setup.c b/setup.c index e9d3f5aab..dda67d268 100644 --- a/setup.c +++ b/setup.c @@ -251,7 +251,7 @@ const char *setup_git_directory_gently(int *nongit_ok) offset++; cwd[len++] = '/'; cwd[len] = 0; - inside_git_dir = !strncmp(cwd + offset, ".git/", 5); + inside_git_dir = !prefixcmp(cwd + offset, ".git/"); return cwd + offset; }