aboutsummaryrefslogtreecommitdiffstats
path: root/t/t9903-bash-prompt.sh
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2018-07-01 20:24:04 -0400
committerJunio C Hamano <gitster@pobox.com>2018-07-16 14:38:47 -0700
commitcff4243db9eec386c17222d545ec7dbf51768672 (patch)
treea078a9c392c1815e2ebda25fb04deb4add555258 /t/t9903-bash-prompt.sh
parentt7000-t7999: fix broken &&-chains (diff)
downloadgit-cff4243db9eec386c17222d545ec7dbf51768672.tar.gz
git-cff4243db9eec386c17222d545ec7dbf51768672.zip
t9000-t9999: fix broken &&-chains
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9903-bash-prompt.sh')
-rwxr-xr-xt/t9903-bash-prompt.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9903-bash-prompt.sh b/t/t9903-bash-prompt.sh
index c3b89ae783..04440685a6 100755
--- a/t/t9903-bash-prompt.sh
+++ b/t/t9903-bash-prompt.sh
@@ -529,7 +529,7 @@ test_expect_success 'prompt - bash color pc mode - branch name' '
printf "BEFORE: (${c_green}\${__git_ps1_branch_name}${c_clear}):AFTER\\nmaster" >expected &&
(
GIT_PS1_SHOWCOLORHINTS=y &&
- __git_ps1 "BEFORE:" ":AFTER" >"$actual"
+ __git_ps1 "BEFORE:" ":AFTER" >"$actual" &&
printf "%s\\n%s" "$PS1" "${__git_ps1_branch_name}" >"$actual"
) &&
test_cmp expected "$actual"