]> source.dussan.org Git - jgit.git/commit
Reject '.git' as a tree name in ObjectChecker 26/23226/3
authorShawn Pearce <spearce@spearce.org>
Wed, 12 Mar 2014 03:12:07 +0000 (20:12 -0700)
committerShawn Pearce <spearce@spearce.org>
Wed, 12 Mar 2014 22:43:38 +0000 (15:43 -0700)
commit09f513cb37bcc0f2fba803acacfed66e527c68ba
tree7cd1d80a710b43ba969cf0a77c3ede4da35a9d5a
parent77cd1c8cdccffa9b9cef0ec620fbfc91691bab24
Reject '.git' as a tree name in ObjectChecker

Using .git as a name in a tree is invalid for most Git repositories.
This can confuse clients into thinking there is a submodule or another
repository deeper in the tree, which is incorrect.

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