Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
filter-branch: use $SHELL_PATH instead of 'sh'
[gitweb.git]
/
shallow.c
diff --git
a/shallow.c
b/shallow.c
index 212e62b77ceea1f81c1938f012099e828f45aa85..4d90eda19efe0a80c1cb39e8897ab3ed5e6fcf56 100644
(file)
--- a/
shallow.c
+++ b/
shallow.c
@@
-70,7
+70,8
@@
struct commit_list *get_shallow_commits(struct object_array *heads, int depth,
cur_depth = *(int *)commit->util;
}
}
- parse_commit(commit);
+ if (parse_commit(commit))
+ die("invalid commit");
commit->object.flags |= not_shallow_flag;
cur_depth++;
for (p = commit->parents, commit = NULL; p; p = p->next) {