Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
symbolic-ref: propagate error code from create_symref()
[gitweb.git]
/
t
/
t1401-symbolic-ref.sh
diff --git
a/t/t1401-symbolic-ref.sh
b/t/t1401-symbolic-ref.sh
index 36378b0e3f5b271388fd0935149eea406caea0d0..e9219a930334847493933cc2f9e5c251c514fabf 100755
(executable)
--- a/
t/t1401-symbolic-ref.sh
+++ b/
t/t1401-symbolic-ref.sh
@@
-63,4
+63,10
@@
test_expect_success 'symbolic-ref fails to delete real ref' '
'
reset_to_sane
+test_expect_success 'symbolic-ref reports failure in exit code' '
+ test_when_finished "rm -f .git/HEAD.lock" &&
+ >.git/HEAD.lock &&
+ test_must_fail git symbolic-ref HEAD refs/heads/whatever
+'
+
test_done