summaryrefslogtreecommitdiff
path: root/git-applypatch.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2005-12-15 12:54:00 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2005-12-15 12:54:00 -0800
commit6677c4665af2d73f670bec382bc82d0f2e9513fb (patch)
tree7197059b14f5e6b820d2b8708434347160ef26e6 /git-applypatch.sh
parentDocumentation: tutorial (diff)
downloadtgif-6677c4665af2d73f670bec382bc82d0f2e9513fb.tar.xz
get_sha1_basic(): corner case ambiguity fix
When .git/refs/heads/frotz and .git/refs/tags/frotz existed, and the object name stored in .git/refs/heads/frotz were corrupt, we ended up picking tags/frotz without complaining. Worse yet, if the corrupt .git/refs/heads/frotz was more than 40 bytes and began with hexadecimal characters, it silently overwritten the initial part of the returned result. This commit adds a couple of tests to demonstrate these cases, with a fix. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-applypatch.sh')
0 files changed, 0 insertions, 0 deletions