Merge branch 'en/t7406-fixes'
[gitweb.git] / t / t9903-bash-prompt.sh
index c3b89ae783d0b5511718be6d6b9d9978dd9131cd..04440685a66d6baff98c1739979c8f866255572b 100755 (executable)
@@ -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"