We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9a102e commit 868dc1aCopy full SHA for 868dc1a
t/t9903-bash-prompt.sh
@@ -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^ &&
0 commit comments