Skip to content

Commit 9ff675d

Browse files
committed
fix(git): disable colors in git branch call.
Might be related to 159 Closes #157
1 parent 5861624 commit 9ff675d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/net/researchgate/release/GitAdapter.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class GitAdapter extends BaseScmAdapter {
149149
}
150150

151151
private String gitCurrentBranch() {
152-
def matches = exec(['git', 'branch']).readLines().grep(~/\s*\*.*/)
152+
def matches = exec(['git', 'branch', '--no-color']).readLines().grep(~/\s*\*.*/)
153153
matches[0].trim() - (~/^\*\s+/)
154154
}
155155

0 commit comments

Comments
 (0)