Merge branch 'sb/submodule-clone-retry'
Fix-up to an error codepath in a topic already in 'master'. * sb/submodule-clone-retry: submodule--helper: use parallel processor correctly
This commit is contained in:
commit
2f9c615efb
@ -748,8 +748,12 @@ static int update_clone_get_next_task(struct child_process *child,
|
||||
if (index < suc->failed_clones_nr) {
|
||||
int *p;
|
||||
ce = suc->failed_clones[index];
|
||||
if (!prepare_to_clone_next_submodule(ce, child, suc, err))
|
||||
die("BUG: ce was a submodule before?");
|
||||
if (!prepare_to_clone_next_submodule(ce, child, suc, err)) {
|
||||
suc->current ++;
|
||||
strbuf_addf(err, "BUG: submodule considered for cloning,"
|
||||
"doesn't need cloning any more?\n");
|
||||
return 0;
|
||||
}
|
||||
p = xmalloc(sizeof(*p));
|
||||
*p = suc->current;
|
||||
*idx_task_cb = p;
|
||||
|
Loading…
Reference in New Issue
Block a user