aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit
diff options
context:
space:
mode:
authorDave Borowitz <dborowitz@google.com>2015-03-12 12:01:44 -0700
committerDave Borowitz <dborowitz@google.com>2015-03-12 12:46:50 -0700
commit6ed07f5cb5f5c296c8abca8ac06a6f923b96119c (patch)
tree0332325e5838bd4214efce8f10f60173acafce35 /org.eclipse.jgit.junit
parent0b625445ef4aa6dc5883336948015804b462de1d (diff)
downloadjgit-6ed07f5cb5f5c296c8abca8ac06a6f923b96119c.tar.gz
jgit-6ed07f5cb5f5c296c8abca8ac06a6f923b96119c.zip
TestRepository: Ignore existing Change-Id in message
Change-Id: I343c3065fa369ef8aab2b033ac1e392b28d10daf
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
index 371e139a88..2afc7163b0 100644
--- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
+++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
@@ -1045,6 +1045,10 @@ public class TestRepository<R extends Repository> {
private void insertChangeId(org.eclipse.jgit.lib.CommitBuilder c)
throws IOException {
+ int idx = ChangeIdUtil.indexOfChangeId(message, "\n");
+ if (idx >= 0)
+ return;
+
ObjectId firstParentId = null;
if (!parents.isEmpty())
firstParentId = parents.get(0);