Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
bash prompt: add a test for symbolic link symbolic refs
author
SZEDER Gábor
<szeder@ira.uka.de>
Fri, 24 Aug 2012 17:52:48 +0000
(19:52 +0200)
committer
SZEDER Gábor
<szeder@ira.uka.de>
Mon, 24 Jun 2013 15:22:09 +0000
(17:22 +0200)
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
t/t9903-bash-prompt.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
c9a102e
)
diff --git
a/t/t9903-bash-prompt.sh
b/t/t9903-bash-prompt.sh
index df36239a59b49ef701a5612e05878e2974e59da1..416e6219ce13a16ce4aa608ac29025cefcacc231 100755
(executable)
--- 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_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^ &&
test_expect_success 'prompt - detached head' '
printf " ((%s...))" $(git log -1 --format="%h" b1^) >expected &&
git checkout b1^ &&