Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
prefixcmp(): fix-up mechanical conversion.
[gitweb.git]
/
setup.c
diff --git
a/setup.c
b/setup.c
index e9d3f5aab63225df7f1b495a19740408d23973a8..dda67d268dcacce2293d245395a38106860fb881 100644
(file)
--- 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;
}