]> source.dussan.org Git - jgit.git/commit
ObjectChecker: Report .gitmodules files found in the pack 93/130493/3
authorIvan Frade <ifrade@google.com>
Thu, 27 Sep 2018 20:05:13 +0000 (13:05 -0700)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 5 Oct 2018 19:45:54 +0000 (21:45 +0200)
commit3ed3eafbd18054ce502969e212b1de34f1ffc776
tree1a004c3af8dcf2d2070f14759139946dac832abd
parentdb9f7b028d8086e5fc66364e9beba1e3a2b99d48
ObjectChecker: Report .gitmodules files found in the pack

In order to validate .gitmodules files, we first need to find them
in the incoming pack.

Do it in the ObjectChecker stage. Check in the tree objects if they
point to a .gitmodules file and report the tree id and the .gitmodules
blob id.

This can be used later to check if the file is in the root of the
project and if the contents are good.

While we're here, make isMacHFSGit more accurate by detecting variants
of filenames that vary in case.

[jn: tweaked NTFS and HFS+ checking; added more tests]

Change-Id: I70802e7d2c1374116149de4f89836b9498f39582
Signed-off-by: Ivan Frade <ifrade@google.com>
Signed-off-by: Jonathan Nieder <jrn@google.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectCheckerTest.java
org.eclipse.jgit/.settings/.api_filters
org.eclipse.jgit/src/org/eclipse/jgit/lib/GitmoduleEntry.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectChecker.java