diff options
Diffstat (limited to 'rev-list.c')
-rw-r--r-- | rev-list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rev-list.c b/rev-list.c index fb75c22bc7..abb611f8b5 100644 --- a/rev-list.c +++ b/rev-list.c @@ -377,7 +377,7 @@ static struct commit *get_commit_reference(const char *name, unsigned int flags) if (object->type == tree_type) { struct tree *tree = (struct tree *)object; if (!tree_objects) - die("%s is a tree object, not a commit", name); + return NULL; if (flags & UNINTERESTING) { mark_tree_uninteresting(tree); return NULL; @@ -392,7 +392,7 @@ static struct commit *get_commit_reference(const char *name, unsigned int flags) if (object->type == blob_type) { struct blob *blob = (struct blob *)object; if (!blob_objects) - die("%s is a blob object, not a commit", name); + return NULL; if (flags & UNINTERESTING) { mark_blob_uninteresting(blob); return NULL; |