From 6b3fbd6367c1bdc9bf2e14c2e055eeafdc54909d Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 7 May 2013 14:32:06 -0700 Subject: t1514: refname shortening is done after dereferencing symbolic refs Signed-off-by: Junio C Hamano --- t/t1514-rev-parse-shorten-unambiguous-ref.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.1