bash prompt: combine 'git rev-parse' executions in the main code path
[gitweb.git] / t / t9903-bash-prompt.sh
index 416e6219ce13a16ce4aa608ac29025cefcacc231..0d53aa6d6948640d287bc514ae9b001cfbf71a42 100755 (executable)
@@ -50,7 +50,8 @@ test_expect_success SYMLINKS 'prompt - branch name - symlink symref' '
 '
 
 test_expect_success 'prompt - detached head' '
-       printf " ((%s...))" $(git log -1 --format="%h" b1^) >expected &&
+       printf " ((%s...))" $(git log -1 --format="%h" --abbrev=13 b1^) >expected &&
+       test_config core.abbrev 13 &&
        git checkout b1^ &&
        test_when_finished "git checkout master" &&
        __git_ps1 >"$actual" &&