Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Remove unused object-ref code
[gitweb.git]
/
shallow.c
diff --git
a/shallow.c
b/shallow.c
index d17868929ceadbd2565549a60cb738a95c90a4bb..ab975482d0571fa4b647bb3bc9f5032947dc0f3e 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) {
@@
-101,4
+102,3
@@
struct commit_list *get_shallow_commits(struct object_array *heads, int depth,
return result;
}
-