diff options
author | Jürgen Hunold <juergen.hunold@ivembh.de> | 2015-10-16 09:52:50 +0200 |
---|---|---|
committer | Jürgen Hunold <juergen.hunold@gmx.de> | 2015-10-16 16:07:44 +0200 |
commit | 5bee2b0f959cd44cd636610d06d67f103fdbe37b (patch) | |
tree | 8e4b41cb510fb90fe4ae85a6e840a1ec33c5f54d | |
parent | eb29662433b833b3a14ee9e79a7aa8d2a0c253ba (diff) | |
download | git-sonar-5bee2b0f959cd44cd636610d06d67f103fdbe37b.tar.gz git-sonar-5bee2b0f959cd44cd636610d06d67f103fdbe37b.zip |
Escape all forward slashes
With out the 'g' flag only the first one will be replaced.
This leads to errors with branches like wip/user/hotfix.
-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 258e5b1..aeb0f41 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 | sed -e 's/\//\\\//')" + branch_result="$(readable_branch_name | sed -e 's/\//\\\//g')" if [[ -n "$branch_result" ]]; then branch_sed="s/${sed_pre}branch${sed_post}/\2${branch_result}\4/" else |