Skip to content

Commit

Permalink
Add --no-color to git branch commands
Browse files Browse the repository at this point in the history
This resolves issue #34, see
#34
  • Loading branch information
emlun committed Aug 11, 2017
1 parent be6c633 commit f5b0243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gws
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ function git_branch()
local cmd

# Git command to execute
cmd=( "git" "branch" )
cmd=( "git" "branch" "--no-color" )

# Run the command and print the output
(cd "$1" && "${cmd[@]}" | grep "*" | cut -d'*' -f 2 | tr -d ' ')
Expand All @@ -608,7 +608,7 @@ function git_branches()
local cmd output

# Git command to execute
cmd=( "git" "branch" )
cmd=( "git" "branch" "--no-color" )

# Run the command and get the output
output=$(cd "$1" && "${cmd[@]}" | cut -d'*' -f 2 | tr -d ' ')
Expand Down

0 comments on commit f5b0243

Please sign in to comment.