|
|
@ -255,8 +255,8 @@ static void show_commit_list(struct commit_list *list) |
|
|
|
die("unknown pending object %s (%s)", sha1_to_hex(obj->sha1), name); |
|
|
|
die("unknown pending object %s (%s)", sha1_to_hex(obj->sha1), name); |
|
|
|
} |
|
|
|
} |
|
|
|
while (objects) { |
|
|
|
while (objects) { |
|
|
|
/* An object with name "foo\n0000000000000000000000000000000000000000" |
|
|
|
/* An object with name "foo\n0000000..." can be used to |
|
|
|
* can be used confuse downstream git-pack-objects very badly. |
|
|
|
* confuse downstream git-pack-objects very badly. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
const char *ep = strchr(objects->name, '\n'); |
|
|
|
const char *ep = strchr(objects->name, '\n'); |
|
|
|
if (ep) { |
|
|
|
if (ep) { |
|
|
|