bash prompt: add a test for symbolic link symbolic refs

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>

SZEDER Gábor committed Aug 24, 2012 at 19:52 UTC 868dc1acecdb8b661e415c6c5f09db5370b35fa7
1 file changed +9
t/t9903-bash-prompt.sh
+9
@@ -40,6 +40,15 @@ test_expect_success 'prompt - branch name' '
40 test_cmp expected "$actual"
41 '
42
43 +test_expect_success SYMLINKS 'prompt - branch name - symlink symref' '
44 + printf " (master)" >expected &&
45 + test_when_finished "git checkout master" &&
46 + test_config core.preferSymlinkRefs true &&
47 + git checkout master &&
48 + __git_ps1 >"$actual" &&
49 + test_cmp expected "$actual"
50 +'
51 +
52 test_expect_success 'prompt - detached head' '
53 printf " ((%s...))" $(git log -1 --format="%h" b1^) >expected &&
54 git checkout b1^ &&