Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
i18n: git-submodule $update_module say + die messages
[gitweb.git]
/
shallow.c
diff --git
a/shallow.c
b/shallow.c
index 4d90eda19efe0a80c1cb39e8897ab3ed5e6fcf56..a0363dea203d2a06e985bb4e140ffc675428cbf8 100644
(file)
--- a/
shallow.c
+++ b/
shallow.c
@@
-47,7
+47,7
@@
struct commit_list *get_shallow_commits(struct object_array *heads, int depth,
{
int i = 0, cur_depth = 0;
struct commit_list *result = NULL;
- struct object_array stack =
{0, 0, NULL}
;
+ struct object_array stack =
OBJECT_ARRAY_INIT
;
struct commit *commit = NULL;
while (commit || i < heads->nr || stack.nr) {