Skip to content

Commit 868dc1a

Browse files
committed
bash prompt: add a test for symbolic link symbolic refs
Signed-off-by: SZEDER Gábor <[email protected]>
1 parent c9a102e commit 868dc1a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

t/t9903-bash-prompt.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ test_expect_success 'prompt - branch name' '
4040
test_cmp expected "$actual"
4141
'
4242

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+
4352
test_expect_success 'prompt - detached head' '
4453
printf " ((%s...))" $(git log -1 --format="%h" b1^) >expected &&
4554
git checkout b1^ &&

0 commit comments

Comments
 (0)