aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-10-17 13:25:20 -0700
committerJunio C Hamano <gitster@pobox.com>2016-10-17 13:25:20 -0700
commitf7300cbfdde611d4bf2b7185e9d00624526953ef (patch)
treeefbb3c1545d54ac3910f4880fdaafbf377ac766b /t
parent25ab004c53cdcfea485e5bf437aeaa74df47196d (diff)
parente8c42cb9ce6a566aad797cc6c5bc1279d608d819 (diff)
downloadgit-f7300cbfdde611d4bf2b7185e9d00624526953ef.tar.gz
git-f7300cbfdde611d4bf2b7185e9d00624526953ef.tar.xz
Merge branch 'jk/ref-symlink-loop'
A stray symbolic link in $GIT_DIR/refs/ directory could make name resolution loop forever, which has been corrected. * jk/ref-symlink-loop: files_read_raw_ref: prevent infinite retry loops in general files_read_raw_ref: avoid infinite loop on broken symlinks
Diffstat (limited to 't')
-rwxr-xr-xt/t1503-rev-parse-verify.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t1503-rev-parse-verify.sh b/t/t1503-rev-parse-verify.sh
index ab27d0db5..492edffa9 100755
--- a/t/t1503-rev-parse-verify.sh
+++ b/t/t1503-rev-parse-verify.sh
@@ -139,4 +139,9 @@ test_expect_success 'master@{n} for various n' '
test_must_fail git rev-parse --verify master@{$Np1}
'
+test_expect_success SYMLINKS 'ref resolution not confused by broken symlinks' '
+ ln -s does-not-exist .git/refs/heads/broken &&
+ test_must_fail git rev-parse --verify broken
+'
+
test_done