diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2017-05-22 14:48:39 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2017-05-24 23:43:59 +0200 |
commit | 832808bd509c88f08848f3b0a75cbb4de7f55df6 (patch) | |
tree | 1dae8530acd0fa19f1ac0129b653ab39b6f867cb /org.eclipse.jgit.test/tst | |
parent | 2204cc986649265fd2748557f05f4521f177fa98 (diff) | |
download | jgit-832808bd509c88f08848f3b0a75cbb4de7f55df6.tar.gz jgit-832808bd509c88f08848f3b0a75cbb4de7f55df6.zip |
Fix out-of-bounds exception in RepoCommand#relative
Change-Id: I9c91aa2ff037bff27a8131fba54be22f5f27d80d
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java index 24b5ad7dab..6ed2c215e9 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java @@ -1120,6 +1120,7 @@ public class RepoCommandTest extends RepositoryTestCase { testRelative("a/", "a/b", "b"); testRelative("/a/b/c", "/b/c", "../../b/c"); testRelative("/abc", "bcd", "bcd"); + testRelative("abc", "def", "def"); testRelative("abc", "/bcd", "/bcd"); testRelative("http://a", "a/b", "a/b"); testRelative("http://base.com/a/", "http://child.com/a/b", "http://child.com/a/b"); |