summaryrefslogtreecommitdiff
path: root/t/t9903-bash-prompt.sh
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder@ira.uka.de>2012-08-24 17:52:48 (GMT)
committerSZEDER Gábor <szeder@ira.uka.de>2013-06-24 15:22:09 (GMT)
commit868dc1acecdb8b661e415c6c5f09db5370b35fa7 (patch)
tree75750822aab508cbbc3ab0ada9028af20a20e4d8 /t/t9903-bash-prompt.sh
parentc9a102e81ffedde3fed4b88199ea13a3a5ee5f5d (diff)
downloadgit-868dc1acecdb8b661e415c6c5f09db5370b35fa7.zip
git-868dc1acecdb8b661e415c6c5f09db5370b35fa7.tar.gz
git-868dc1acecdb8b661e415c6c5f09db5370b35fa7.tar.bz2
bash prompt: add a test for symbolic link symbolic refs
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Diffstat (limited to 't/t9903-bash-prompt.sh')
-rwxr-xr-xt/t9903-bash-prompt.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t9903-bash-prompt.sh b/t/t9903-bash-prompt.sh
index df36239..416e621 100755
--- a/t/t9903-bash-prompt.sh
+++ b/t/t9903-bash-prompt.sh
@@ -40,6 +40,15 @@ test_expect_success 'prompt - branch name' '
test_cmp expected "$actual"
'
+test_expect_success SYMLINKS 'prompt - branch name - symlink symref' '
+ printf " (master)" >expected &&
+ test_when_finished "git checkout master" &&
+ test_config core.preferSymlinkRefs true &&
+ git checkout master &&
+ __git_ps1 >"$actual" &&
+ test_cmp expected "$actual"
+'
+
test_expect_success 'prompt - detached head' '
printf " ((%s...))" $(git log -1 --format="%h" b1^) >expected &&
git checkout b1^ &&