Bugfix to avoid errors due to Git subcommands returning ANSI color output.
diff --git a/git-flow-feature b/git-flow-feature
index 2fdba25..872e0bb 100644
--- a/git-flow-feature
+++ b/git-flow-feature
@@ -74,7 +74,7 @@
warn ""
exit 0
fi
- current_branch=$(git branch | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
+ current_branch=$(git branch --color=never | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
short_names=$(echo "$feature_branches" | sed "s ^$PREFIX g")
# determine column width first