summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2015-09-25 17:48:02 -0400
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>2015-09-25 17:48:04 -0400
commit6715c36100d097d39e303fe2fbc4c62412c46a4a (patch)
tree3ee002161b450ada85e123fe01662617c84f7f77 /org.eclipse.jgit.test
parent97ef1fe89369422ca430b47e0b53277b94bfbc29 (diff)
parenta28ba3f2c7e0fa96f778c62813734807c99c61c3 (diff)
downloadjgit-6715c36100d097d39e303fe2fbc4c62412c46a4a.tar.gz
jgit-6715c36100d097d39e303fe2fbc4c62412c46a4a.zip
Merge "Show submodule difference as a hunk"
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java
index 02e485d41e..24b0f8141e 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java
@@ -241,8 +241,7 @@ public class DiffFormatterTest extends RepositoryTestCase {
ObjectId bId = blob("b\n");
String diffHeader = makeDiffHeaderModeChange(PATH_A, PATH_A, aId, bId,
- GITLINK, REGULAR_FILE)
- + "-Subproject commit " + aId.name() + "\n";
+ GITLINK, REGULAR_FILE);
DiffEntry ad = DiffEntry.delete(PATH_A, aId);
ad.oldMode = FileMode.GITLINK;
@@ -257,7 +256,7 @@ public class DiffFormatterTest extends RepositoryTestCase {
assertEquals(1, fh.getHunks().size());
HunkHeader hh = fh.getHunks().get(0);
- assertEquals(0, hh.toEditList().size());
+ assertEquals(1, hh.toEditList().size());
}
@Test