summaryrefslogtreecommitdiff
path: root/t/t2000-checkout-cache-clash.sh
diff options
context:
space:
mode:
authorLibravatar Eric Wong <normalperson@yhbt.net>2006-10-11 16:16:02 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-10-11 18:10:38 -0700
commit14763e7bda06a502455ef4420067205797b9a907 (patch)
treee5e84d965d674e7536875491a3f7b7c98f7b7344 /t/t2000-checkout-cache-clash.sh
parentgit-svn: -h(elp) message formatting fixes (diff)
downloadtgif-14763e7bda06a502455ef4420067205797b9a907.tar.xz
commit: fix a segfault when displaying a commit with unreachable parents
I was running git show on various commits found by fsck-objects when I found this bug. Since find_unique_abbrev() cannot find an abbreviation for an object not in the database, it will return NULL, which is bad to run strlen() on. So instead, we'll just display the unabbreviated sha1 that we referenced in the commit. I'm not sure that this is the best 'fix' for it because the commit I was trying to show was broken, but I don't think a program should segfault even if the user tries to do something stupid. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t2000-checkout-cache-clash.sh')
0 files changed, 0 insertions, 0 deletions