diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java index 9b4323efe..ad5afbf68 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java @@ -359,6 +359,7 @@ public class ObjectDirectory extends FileObjectDatabase { // The hasObject call should have only touched the index, // so any failure here indicates the index is unreadable // by this process, and the pack is likewise not readable. + LOG.warn("Unable to read packfile " + p.getPackFile(), e); removePack(p); } } @@ -651,6 +652,7 @@ public class ObjectDirectory extends FileObjectDatabase { if ((e instanceof CorruptObjectException) || (e instanceof PackInvalidException)) { warnTmpl = JGitText.get().corruptPack; + LOG.warn("Packfile " + p.getPackFile() + " is corrupted", e); // Assume the pack is corrupted, and remove it from the list. removePack(p); } else if (e instanceof FileNotFoundException) { diff --git a/tools/version.sh b/tools/version.sh index e5c98ecdc..8b8095db4 100755 --- a/tools/version.sh +++ b/tools/version.sh @@ -156,6 +156,17 @@ perl -pi~ -e ' } ' org.eclipse.jgit.packaging/pom.xml +perl -pi~ -e ' + if ($ARGV ne $old_argv) { + $seen_version = 0; + $old_argv = $ARGV; + } + if ($seen_version < 18) { + $seen_version++ if + s{<(version)>.*}{<${1}>'"$POM_V"'}; + } + ' org.eclipse.jgit.coverage/pom.xml + perl -pi~ -e ' if ($ARGV ne $old_argv) { $seen_version = 0;