Code

send-pack: segfault fix on forced push
authorJunio C Hamano <gitster@pobox.com>
Thu, 8 Nov 2007 09:38:12 +0000 (01:38 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Nov 2007 09:43:34 +0000 (01:43 -0800)
commit6738c8194286fa0017f72cb57628dcae9ec07b27
tree6af8805826bddec635fc079c4e28349104a4faa2
parentb50fa2bd061c3bb21f2918849ece43ac9ca2c504
send-pack: segfault fix on forced push

When pushing to overwrite a ref that points at a commit we do
not even have, the recent "terse push" patch tried to get a
unique abbreviation for the non-existent (from our point of
view) object, which resulted in strcpy(buf, NULL) and
segfaulted.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-send-pack.c
t/t5405-send-pack-rewind.sh [new file with mode: 0755]