Instead of printing the stack trace from the JGitInternalException thrown from CommitMessage.call(), print just the exception message, using the Die exception. Change-Id: I9ec3eb02eb001813fa15ac6f90a606223dcdafdctags/v2.0.0.201206130900-r
commitCmd.setAmend(amend); | commitCmd.setAmend(amend); | ||||
commitCmd.setAll(all); | commitCmd.setAll(all); | ||||
Ref head = db.getRef(Constants.HEAD); | Ref head = db.getRef(Constants.HEAD); | ||||
RevCommit commit = commitCmd.call(); | |||||
RevCommit commit; | |||||
try { | |||||
commit = commitCmd.call(); | |||||
} catch (JGitInternalException e) { | |||||
throw die(e.getMessage()); | |||||
} | |||||
String branchName; | String branchName; | ||||
if (!head.isSymbolic()) | if (!head.isSymbolic()) |