summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-09-02 09:40:19 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-09-02 09:40:19 +0200
commit96934c9a80bdc307933eeef53fec2748b3a000cb (patch)
treee7ebf85ea7844e989eba3e0c68606907e41ee826
parentfb51a2234bd8d526a74849543328e77eea71e329 (diff)
parent13c8dacae55b8719d228b303570c369231f7c1c1 (diff)
downloadjgit-96934c9a80bdc307933eeef53fec2748b3a000cb.tar.gz
jgit-96934c9a80bdc307933eeef53fec2748b3a000cb.zip
Merge branch 'master' into stable-6.7
* master: CommitGraphWriter: throw exception on unknown chunk Change-Id: Iaa0c563917c4195fccd57f5e6839a37008c9b808
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/CommitGraphWriter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/CommitGraphWriter.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/CommitGraphWriter.java
index c5cfe95864..bab262231f 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/CommitGraphWriter.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/CommitGraphWriter.java
@@ -222,6 +222,9 @@ public class CommitGraphWriter {
}
chunk.data.get().writeTo(out);
break;
+ default:
+ throw new IllegalStateException(
+ "Don't know how to write chunk " + chunkId); //$NON-NLS-1$
}
}
}