From 31ceb350fd06ee7bce133cce3f13a991076d0a01 Mon Sep 17 00:00:00 2001 From: oGre Date: Thu, 2 Jun 2016 20:56:47 +0200 Subject: [PATCH 1/3] Fixed quoting to just around the first parameter --- gitprompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitprompt.sh b/gitprompt.sh index 913d0a9..750ee83 100755 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -482,7 +482,7 @@ function updatePrompt() { if [[ "x$2" == "x-n" ]] ; then v="$2 \"\$GIT_$1\"" else - v="\"\$GIT_$1 $2\"" + v="\"\$GIT_$1\" $2" fi if eval "test $v" ; then if [[ $# -lt 2 || "$3" != '-' ]]; then From 134be60f6f30ed8230d5ad87cfdfc5fa7e61a32f Mon Sep 17 00:00:00 2001 From: oGre Date: Thu, 2 Jun 2016 20:58:45 +0200 Subject: [PATCH 2/3] Added IntelliJ project directory to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index e7683df..7707360 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *~ *.bak +.idea/ From 9a6f9cbb3c4aa2637429db0172200a37c1a5e05d Mon Sep 17 00:00:00 2001 From: oGre Date: Fri, 3 Jun 2016 19:56:00 +0200 Subject: [PATCH 3/3] Revert both 'fixes' --- gitprompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitprompt.sh b/gitprompt.sh index 750ee83..cad311c 100755 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -482,7 +482,7 @@ function updatePrompt() { if [[ "x$2" == "x-n" ]] ; then v="$2 \"\$GIT_$1\"" else - v="\"\$GIT_$1\" $2" + v="\$GIT_$1 $2" fi if eval "test $v" ; then if [[ $# -lt 2 || "$3" != '-' ]]; then