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:
@ -748,8 +748,12 @@ static int update_clone_get_next_task(struct child_process *child,
|
|||||||
if (index < suc->failed_clones_nr) {
|
if (index < suc->failed_clones_nr) {
|
||||||
int *p;
|
int *p;
|
||||||
ce = suc->failed_clones[index];
|
ce = suc->failed_clones[index];
|
||||||
if (!prepare_to_clone_next_submodule(ce, child, suc, err))
|
if (!prepare_to_clone_next_submodule(ce, child, suc, err)) {
|
||||||
die("BUG: ce was a submodule before?");
|
suc->current ++;
|
||||||
|
strbuf_addf(err, "BUG: submodule considered for cloning,"
|
||||||
|
"doesn't need cloning any more?\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
p = xmalloc(sizeof(*p));
|
p = xmalloc(sizeof(*p));
|
||||||
*p = suc->current;
|
*p = suc->current;
|
||||||
*idx_task_cb = p;
|
*idx_task_cb = p;
|
||||||
|
Reference in New Issue
Block a user