Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
use parse_commit_or_die instead of custom message
[gitweb.git]
/
shallow.c
diff --git
a/shallow.c
b/shallow.c
index 8a9c96d019a1b3df4942f370fe0d312467a36799..a273685e75098440548b78c6445c1f2efeb0ad2b 100644
(file)
--- a/
shallow.c
+++ b/
shallow.c
@@
-89,8
+89,7
@@
struct commit_list *get_shallow_commits(struct object_array *heads, int depth,
cur_depth = *(int *)commit->util;
}
}
- if (parse_commit(commit))
- die("invalid commit");
+ parse_commit_or_die(commit);
cur_depth++;
if (cur_depth >= depth) {
commit_list_insert(commit, &result);