Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
verify_dotfile: mention case-insensitivity in comment
author
Jeff King
<peff@peff.net>
Tue, 15 May 2018 13:56:50 +0000
(09:56 -0400)
committer
Jeff King
<peff@peff.net>
Tue, 22 May 2018 03:50:11 +0000
(23:50 -0400)
We're more restrictive than we need to be in matching ".GIT"
on case-sensitive filesystems; let's make a note that this
is intentional.
Signed-off-by: Jeff King <peff@peff.net>
read-cache.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
e19e5e6
)
diff --git
a/read-cache.c
b/read-cache.c
index 5c5dfc629d6e2c25b8cbcd36d28448609ecd9f91..333e0c542967814fcb3e71fd4cec973548b4f567 100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-810,7
+810,10
@@
static int verify_dotfile(const char *rest)
switch (*rest) {
/*
- * ".git" followed by NUL or slash is bad.
+ * ".git" followed by NUL or slash is bad. Note that we match
+ * case-insensitively here, even if ignore_case is not set.
+ * This outlaws ".GIT" everywhere out of an abundance of caution,
+ * since there's really no good reason to allow it.
*/
case 'g':
case 'G':