diff options
| -rw-r--r-- | commit.c | 2 | ||||
| -rw-r--r-- | rev-list.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -160,7 +160,7 @@ struct commit_graft *read_graft_line(char *buf, int len) if (buf[len-1] == '\n') buf[--len] = 0; - if (buf[0] == '#') + if (buf[0] == '#' || buf[0] == '\0') return NULL; if ((len + 1) % 41) { bad_graft_data: diff --git a/rev-list.c b/rev-list.c index f5511e72db..a8fe83c5d8 100644 --- a/rev-list.c +++ b/rev-list.c @@ -371,6 +371,8 @@ int main(int argc, const char **argv) save_commit_buffer = verbose_header; track_object_refs = 0; + if (bisect_list) + revs.limited = 1; prepare_revision_walk(&revs); if (revs.tree_objects) |
