Skip to content

Commit fa6758e

Browse files
committed
Merge branch 'mh/fast-import-no-diff-delta-empty'
"git fast-import" has been updated to avoid attempting to create delta against a zero-byte-long string, which is pointless. * mh/fast-import-no-diff-delta-empty: fast-import: do not call diff_delta() with empty buffer
2 parents d3f0938 + 9d14ecf commit fa6758e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fast-import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ static int store_object(
10761076
return 1;
10771077
}
10781078

1079-
if (last && last->data.buf && last->depth < max_depth
1079+
if (last && last->data.len && last->data.buf && last->depth < max_depth
10801080
&& dat->len > the_hash_algo->rawsz) {
10811081

10821082
delta_count_attempts_by_type[type]++;

0 commit comments

Comments
 (0)