]> source.dussan.org Git - jgit.git/commit
Permit ObjectChecker to optionally accept leading '0' in trees 24/23224/3
authorShawn Pearce <spearce@spearce.org>
Wed, 12 Mar 2014 00:19:37 +0000 (17:19 -0700)
committerShawn Pearce <spearce@spearce.org>
Wed, 12 Mar 2014 22:43:20 +0000 (15:43 -0700)
commit2f1bd3618da20886b12b8132e9307bc61f5fe039
treed308fb11aab45a22011da00907ea8ed98e99c1c3
parentefd91ef8a7e9d97fab08a6b9a5e181c846b744cb
Permit ObjectChecker to optionally accept leading '0' in trees

The leading '0' is a broken mode that although incorrect in the
Git canonical tree format was created by a couple of libraries
frequently used on a popular Git hosting site. Some projects have
these modes stuck in their ancient history and cannot easily
repair the damage without a full history rewrite. Optionally permit
ObjectChecker to ignore them.

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