summaryrefslogtreecommitdiff
path: root/t/t7510-signed-commit.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-23 21:27:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-23 21:31:35 (GMT)
commit60a5f5fc791d6c133732238736ef0961df600296 (patch)
treeb0d9b77bd01519d3367ab654f2746d082a1d065c /t/t7510-signed-commit.sh
parent34d5217584ee4722d0c0b07ed6c8f1f01ad157c3 (diff)
downloadgit-60a5f5fc791d6c133732238736ef0961df600296.zip
git-60a5f5fc791d6c133732238736ef0961df600296.tar.gz
git-60a5f5fc791d6c133732238736ef0961df600296.tar.bz2
builtin/clone.c: detect a clone starting at a tag correctly
31b808a0 (clone --single: limit the fetch refspec to fetched branch, 2012-09-20) tried to see if the given "branch" to follow is actually a tag at the remote repository by checking with "refs/tags/" but it incorrectly used strstr(3); it is actively wrong to treat a "branch" "refs/heads/refs/tags/foo" and use the logic for the "refs/tags/" ref hierarchy. What the code really wanted to do is to see if it starts with "refs/tags/". Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7510-signed-commit.sh')
0 files changed, 0 insertions, 0 deletions