author | Junio C Hamano <gitster@pobox.com> | |
Thu, 8 Nov 2007 09:38:12 +0000 (01:38 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 8 Nov 2007 09:43:34 +0000 (01:43 -0800) | ||
commit | 6738c8194286fa0017f72cb57628dcae9ec07b27 | |
tree | 6af8805826bddec635fc079c4e28349104a4faa2 | tree | snapshot |
parent | b50fa2bd061c3bb21f2918849ece43ac9ca2c504 | commit | diff |
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>
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 | diff | blob | history | |
t/t5405-send-pack-rewind.sh | [new file with mode: 0755] | blob |