summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-05-07 14:32:06 -0700
committerJunio C Hamano <gitster@pobox.com>2013-05-07 14:40:17 -0700
commit6b3fbd6367c1bdc9bf2e14c2e055eeafdc54909d (patch)
tree6852b54e9d409550e6da2b01347e3f2901283c26
parent4995ba801d902cc56f5e90e276d1b9cce8e5fce7 (diff)
downloadgit-jh/shorten-refname.tar.gz
t1514: refname shortening is done after dereferencing symbolic refsjh/shorten-refname
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t1514-rev-parse-shorten-unambiguous-ref.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t1514-rev-parse-shorten-unambiguous-ref.sh b/t/t1514-rev-parse-shorten-unambiguous-ref.sh
index 35ddd4ed9e..3948128b94 100755
--- a/t/t1514-rev-parse-shorten-unambiguous-ref.sh
+++ b/t/t1514-rev-parse-shorten-unambiguous-ref.sh
@@ -75,4 +75,11 @@ test_expect_success 'shortening refnames in loose mode' '
test_shortname refs/tags/master loose tags/master master_c
'
+test_expect_success 'shortening is done after dereferencing a symref' '
+ git update-ref refs/remotes/frotz/master master_e &&
+ git symbolic-ref refs/remotes/frotz/HEAD refs/remotes/frotz/master &&
+ test_shortname refs/remotes/frotz/HEAD strict frotz/master master_e &&
+ test_shortname refs/remotes/frotz/HEAD loose frotz/master master_e
+'
+
test_done