Merge branch 'es/recursive-single-branch-clone'
"git clone --recurse-submodules --single-branch" now uses the same single-branch option when cloning the submodules. * es/recursive-single-branch-clone: clone: pass --single-branch during --recurse-submodules submodule--helper: use C99 named initializer
This commit is contained in:
@ -833,6 +833,11 @@ static int checkout(int submodule_progress)
|
||||
argv_array_push(&args, "--no-fetch");
|
||||
}
|
||||
|
||||
if (option_single_branch >= 0)
|
||||
argv_array_push(&args, option_single_branch ?
|
||||
"--single-branch" :
|
||||
"--no-single-branch");
|
||||
|
||||
err = run_command_v_opt(args.argv, RUN_GIT_CMD);
|
||||
argv_array_clear(&args);
|
||||
}
|
||||
|
Reference in New Issue
Block a user