]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/stash.c
stash: avoid recursive hard reset on submodules
[thirdparty/git.git] / builtin / stash.c
index b5a301f24d7a5f8b0a5f7d51703ca4cf38e2109c..c986c258f25734140e7dd05af35ad4744ef9d2f3 100644 (file)
@@ -1383,7 +1383,7 @@ static int do_push_stash(const struct pathspec *ps, const char *stash_msg, int q
                        struct child_process cp = CHILD_PROCESS_INIT;
                        cp.git_cmd = 1;
                        argv_array_pushl(&cp.args, "reset", "--hard", "-q",
-                                        NULL);
+                                        "--no-recurse-submodules", NULL);
                        if (run_command(&cp)) {
                                ret = -1;
                                goto done;