diff options
author | Christian Halstrick <christian.halstrick@sap.com> | 2010-10-11 16:53:18 +0200 |
---|---|---|
committer | Christian Halstrick <christian.halstrick@sap.com> | 2010-10-12 19:18:50 +0200 |
commit | 0a8d54c2867508d0567c8a35c7ccfc1edc4d1ed1 (patch) | |
tree | 215ea209e9e21477c58ca36284fede483b249799 /org.eclipse.jgit.test/tst/org/eclipse/jgit/api/BranchCommandTest.java | |
parent | e82cadc0dcece55ff8bad1a890bf9e3f8b802cdf (diff) | |
download | jgit-0a8d54c2867508d0567c8a35c7ccfc1edc4d1ed1.tar.gz jgit-0a8d54c2867508d0567c8a35c7ccfc1edc4d1ed1.zip |
Remove AmbiguousObjectException from BranchCreateCommand.call()
We wanted to wrap all LowLevel JGit excpetions into a
JGitInternalException so that users of this high-level interface
don't have to explicitly catch all of them. This
was forgotten on BranchCreateCommand.call() and I added
it.
Change-Id: Ie140e99574fb004137c66e80fb92eb6c6d0fa5e1
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/api/BranchCommandTest.java')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/api/BranchCommandTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/BranchCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/BranchCommandTest.java index 07dc560030..3fb9288d00 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/BranchCommandTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/BranchCommandTest.java @@ -53,7 +53,6 @@ import org.eclipse.jgit.api.errors.JGitInternalException; import org.eclipse.jgit.api.errors.NotMergedException; import org.eclipse.jgit.api.errors.RefAlreadyExistsException; import org.eclipse.jgit.api.errors.RefNotFoundException; -import org.eclipse.jgit.errors.AmbiguousObjectException; import org.eclipse.jgit.lib.Constants; import org.eclipse.jgit.lib.Ref; import org.eclipse.jgit.lib.RefUpdate; @@ -404,7 +403,7 @@ public class BranchCommandTest extends RepositoryTestCase { public Ref createBranch(Git actGit, String name, boolean force, String startPoint, SetupUpstreamMode mode) throws JGitInternalException, RefAlreadyExistsException, - AmbiguousObjectException, RefNotFoundException, + RefNotFoundException, InvalidRefNameException { CreateBranchCommand cmd = actGit.branchCreate(); cmd.setName(name); |