]> source.dussan.org Git - jgit.git/commit
DfsFsck: Check that .gitmodules in the repository have valid contents 17/130517/8
authorIvan Frade <ifrade@google.com>
Mon, 8 Oct 2018 22:42:47 +0000 (15:42 -0700)
committerIvan Frade <ifrade@google.com>
Tue, 9 Oct 2018 20:48:47 +0000 (13:48 -0700)
commit39b27f7c7b99499702db6e86ccfacf448a3231bf
treeebcb79ff7b5cbc5a2c65c88bf587a8fd7354d7f2
parent7aebb6779c19d0c62a1c11fa89d19a1e5a03ea1c
DfsFsck: Check that .gitmodules in the repository have valid contents

Previous commits block the addition to the repo of dangerous .gitmodules
files, but some could have been committed before those safeguards where
in place.

Add a check in DfsFsck to validate the .gitmodules files in the repo.
Use the same validation than the ReceivePack, translating the
results to FsckErrors.

Note that *all* .gitmodules files in the storage will be checked, not
only the latest version.

Change-Id: I040cf1f31a779419aad0292ba5e6e76eb7f32b66
Signed-off-by: Ivan Frade <ifrade@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsFsckTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsFsck.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectChecker.java