diff options
author | Michael Allen <michael@michaelallen.io> | 2015-10-15 11:25:47 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-10-15 11:25:47 +0100 |
commit | 74fb6b46bb581813efb4d55a5b770ba3ca0218f5 (patch) | |
tree | df29ce6cf15b307ca795bbda713288ba7883f978 | |
parent | a2e156cc566ce7ad927eeb203a15aebf73617f2a (diff) | |
download | git-sonar-74fb6b46bb581813efb4d55a5b770ba3ca0218f5.tar.gz git-sonar-74fb6b46bb581813efb4d55a5b770ba3ca0218f5.zip |
Support git-flow style branches by @slackorama
-rwxr-xr-x | radar-base.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radar-base.sh b/radar-base.sh index 4f5a483..258e5b1 100755 --- a/radar-base.sh +++ b/radar-base.sh @@ -517,7 +517,7 @@ render_prompt() { fi fi if [[ $PROMPT_FORMAT =~ ${if_pre}branch${if_post} ]]; then - branch_result="$(readable_branch_name)" + branch_result="$(readable_branch_name | sed -e 's/\//\\\//')" if [[ -n "$branch_result" ]]; then branch_sed="s/${sed_pre}branch${sed_post}/\2${branch_result}\4/" else |