diff options
author | Tomasz Zarna <Tomasz.Zarna@pl.ibm.com> | 2012-09-05 07:59:37 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2012-09-05 07:59:37 +0200 |
commit | e44c3e713902faaf3c831827915312666cd6ecd6 (patch) | |
tree | 1731718bdedf1bd46ac05af125d477e2a2ba6b1d /org.eclipse.jgit.pgm.test/src | |
parent | f590a4c6672b6f507db72b8a425f6af4873c9b71 (diff) | |
download | jgit-e44c3e713902faaf3c831827915312666cd6ecd6.tar.gz jgit-e44c3e713902faaf3c831827915312666cd6ecd6.zip |
Output result of switching branch -- o.e.jgit.pgm.Checkout
Change-Id: I9829950b686ce3b8c70b8f7a1774d5e2b55cd00a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm.test/src')
-rw-r--r-- | org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java b/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java index 18abc82618..28339c71e3 100644 --- a/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java +++ b/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java @@ -94,6 +94,8 @@ public class CLIGitCommand { try { cmd.execute(bean.getArguments().toArray( new String[bean.getArguments().size()])); + } catch (Die e) { + return IO.readLines(e.getMessage()); } finally { if (cmd.out != null) cmd.out.flush(); |