Skip to content

Commit

Permalink
Fix #128: catch errors when doing git commit
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Sep 1, 2015
1 parent 2d1063e commit 51bf677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/groovy/net/researchgate/release/GitAdapter.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class GitAdapter extends BaseScmAdapter {

@Override
void commit(String message) {
exec(['git', 'commit', '-a', '-m', message])
exec(['git', 'commit', '-a', '-m', message], errorPatterns: ['error: ', 'fatal: '])
if (shouldPush()) {
def branch
if (extension.git.pushToCurrentBranch) {
Expand Down

0 comments on commit 51bf677

Please sign in to comment.