]> source.dussan.org Git - jgit.git/commit
Always ignore case when forbidding .git in ObjectChecker
authorShawn Pearce <sop@google.com>
Mon, 24 Nov 2014 18:27:49 +0000 (10:27 -0800)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 18 Dec 2014 13:48:52 +0000 (14:48 +0100)
commit07612a610f99ce32b8409a854c74d7761e8f38eb
treeacde752e26210ec8a26d3247ac5f31501d18cf41
parent8d36fa343c689d1334ddc1f722c153203c1d13f7
Always ignore case when forbidding .git in ObjectChecker

The component name ".GIT" inside a tree entry could confuse a
case insensitive filesystem into looking at a submodule and
not a directory entry.

Disallow any case permutations of ".git" to prevent this
confusion from entering a repository and showing up at a
later date on a case insensitive system.

Change-Id: Iaa3f768931d0d5764bf07ac5f6f3ff2b1fdda01b
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectCheckerTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectChecker.java