diff options
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/merge/MergeMessageFormatterTest.java | 4 | ||||
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeMessageFormatter.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/merge/MergeMessageFormatterTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/merge/MergeMessageFormatterTest.java index 4ccc0f9bed..73fb838f0b 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/merge/MergeMessageFormatterTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/merge/MergeMessageFormatterTest.java @@ -114,7 +114,7 @@ public class MergeMessageFormatterTest extends SampleDataRepositoryTestCase { Ref remoteA = db.getRef("refs/remotes/origin/remote-a"); Ref master = db.getRef("refs/heads/master"); String message = formatter.format(Arrays.asList(remoteA), master); - assertEquals("Merge remote branch 'origin/remote-a'", message); + assertEquals("Merge remote-tracking branch 'origin/remote-a'", message); } @Test @@ -123,7 +123,7 @@ public class MergeMessageFormatterTest extends SampleDataRepositoryTestCase { Ref remoteA = db.getRef("refs/remotes/origin/remote-a"); Ref master = db.getRef("refs/heads/master"); String message = formatter.format(Arrays.asList(c, remoteA), master); - assertEquals("Merge branch 'c', remote branch 'origin/remote-a'", + assertEquals("Merge branch 'c', remote-tracking branch 'origin/remote-a'", message); } diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeMessageFormatter.java b/org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeMessageFormatter.java index 11f3b7a3fd..1a26ecfe1f 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeMessageFormatter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeMessageFormatter.java @@ -99,8 +99,8 @@ public class MergeMessageFormatter { listings.add(joinNames(branches, "branch", "branches")); if (!remoteBranches.isEmpty()) - listings.add(joinNames(remoteBranches, "remote branch", - "remote branches")); + listings.add(joinNames(remoteBranches, "remote-tracking branch", + "remote-tracking branches")); if (!tags.isEmpty()) listings.add(joinNames(tags, "tag", "tags")); |