summaryrefslogtreecommitdiff
path: root/csum-file.h
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-10-17 20:03:38 -0500
committerJunio C Hamano <gitster@pobox.com>2010-10-18 16:41:27 -0700
commit5edde510181357b0d0376d5542ddfa51a7e7ba12 (patch)
treef80b1b6c6f516aad910d30d59f8589ac88a4adfb /csum-file.h
parent2794ad524462c4e2ecd4573d650e7b4f8da89a5d (diff)
downloadgit-5edde510181357b0d0376d5542ddfa51a7e7ba12.tar.gz
fast-import: filemodify after M 040000 <tree> "" crashes
Until M 040000 <tree> "" syntax was introduced in commit 2794ad5 (fast-import: Allow filemodify to set the root, 2010-10-10), it was impossible for the root entry to refer to an unloaded tree. Update various functions to take that possibility into account. Otherwise M 040000 <tree> "" M 100644 :1 "foo" and similar commands (using D, C, or R after resetting the root tree) segfault. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'csum-file.h')
0 files changed, 0 insertions, 0 deletions