]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/stash.c
Ensure index matches head before invoking merge machinery, round N
[thirdparty/git.git] / builtin / stash.c
index b5a301f24d7a5f8b0a5f7d51703ca4cf38e2109c..4aa47785f94ff5e414fafb795d527e15c4ce2bae 100644 (file)
@@ -427,6 +427,8 @@ static int do_apply_stash(const char *prefix, struct stash_info *info,
                                return error(_("could not save index tree"));
 
                        reset_head();
+                       discard_cache();
+                       read_cache();
                }
        }