{"thread":{"id":"12599","subject":"[PATCH] bash: Properly quote the GIT_DIR at all times to fix subdirectory paths with spaces","startedAt":"2008-03-09T03:10:48Z","lastAt":"2008-03-09T03:10:48Z","messageCount":1,"participants":["Kevin Ballard"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"71486","messageId":"1205032248-29246-1-git-send-email-kevin@sb.org","threadId":"12599","inReplyTo":null,"subject":"[PATCH] bash: Properly quote the GIT_DIR at all times to fix subdirectory paths with spaces","fromName":"Kevin Ballard","fromEmail":"kevin@sb.org","sentAt":"2008-03-09T03:10:48Z","receivedAt":"2008-03-09T03:10:48Z","isPatch":true,"sender":{"key":"kevin@sb.org","avatar":"https://avatars.githubusercontent.com/u/714?v=4"},"body":"Signed-off-by: Kevin Ballard <kevin@sb.org>\n---\n contrib/completion/git-completion.bash |    8 ++++----\n 1 files changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 49e6df0..81e40e4 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -75,17 +75,17 @@ __git_ps1 ()\n \t\telif [ -f \"$g/.dotest-merge/interactive\" ]\n \t\tthen\n \t\t\tr=\"|REBASE-i\"\n-\t\t\tb=\"$(cat $g/.dotest-merge/head-name)\"\n+\t\t\tb=\"$(cat \"$g/.dotest-merge/head-name\")\"\n \t\telif [ -d \"$g/.dotest-merge\" ]\n \t\tthen\n \t\t\tr=\"|REBASE-m\"\n-\t\t\tb=\"$(cat $g/.dotest-merge/head-name)\"\n+\t\t\tb=\"$(cat \"$g/.dotest-merge/head-name\")\"\n \t\telif [ -f \"$g/MERGE_HEAD\" ]\n \t\tthen\n \t\t\tr=\"|MERGING\"\n \t\t\tb=\"$(git symbolic-ref HEAD 2>/dev/null)\"\n \t\telse\n-\t\t\tif [ -f $g/BISECT_LOG ]\n+\t\t\tif [ -f \"$g/BISECT_LOG\" ]\n \t\t\tthen\n \t\t\t\tr=\"|BISECTING\"\n \t\t\tfi\n@@ -93,7 +93,7 @@ __git_ps1 ()\n \t\t\tthen\n \t\t\t\tif ! b=\"$(git describe --exact-match HEAD 2>/dev/null)\"\n \t\t\t\tthen\n-\t\t\t\t\tb=\"$(cut -c1-7 $g/HEAD)...\"\n+\t\t\t\t\tb=\"$(cut -c1-7 \"$g/HEAD\")...\"\n \t\t\t\tfi\n \t\t\tfi\n \t\tfi\n-- \n1.5.4.3.487.g1eab2.dirty\n\n"}]}