]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/submodule--helper.c
Merge branch 'en/removing-untracked-fixes'
[thirdparty/git.git] / builtin / submodule--helper.c
index d574d650af871a80bb593648db8d2c8148fcddaf..6298cbdd4e5f23aba5e47b5863737379bd60135e 100644 (file)
@@ -3086,6 +3086,10 @@ static int add_submodule(const struct add_data *add_data)
                prepare_submodule_repo_env(&cp.env_array);
                cp.git_cmd = 1;
                cp.dir = add_data->sm_path;
+               /*
+                * NOTE: we only get here if add_data->force is true, so
+                * passing --force to checkout is reasonable.
+                */
                strvec_pushl(&cp.args, "checkout", "-f", "-q", NULL);
 
                if (add_data->branch) {