verify_dotfile(): reject .git case-insensitively
[gitweb.git] / read-cache.c
index 33dd676ccbbd24e0bace49347f1f5d81b5099bcc..122be494f3886e12316b3f6b3896fa5828b941c1 100644 (file)
@@ -759,9 +759,10 @@ static int verify_dotfile(const char *rest)
         * shares the path end test with the ".." case.
         */
        case 'g':
-               if (rest[1] != 'i')
+       case 'G':
+               if (rest[1] != 'i' && rest[1] != 'I')
                        break;
-               if (rest[2] != 't')
+               if (rest[2] != 't' && rest[2] != 'T')
                        break;
                rest += 2;
        /* fallthrough */