diff --git a/gitprompt.sh b/gitprompt.sh index 219fdce0..d54ed4fe 100755 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -516,7 +516,7 @@ function updatePrompt() { if [[ "." == "$GIT_REMOTE" ]]; then unset GIT_REMOTE fi - local GIT_REMOTE_USERNAME_REPO=$(replaceSymbols ${git_status_fields[2]}) + local GIT_REMOTE_USERNAME_REPO="$(replaceSymbols ${git_status_fields[2]})" if [[ "." == "$GIT_REMOTE_USERNAME_REPO" ]]; then unset GIT_REMOTE_USERNAME_REPO fi