X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=builtin%2Fstash.c;fp=builtin%2Fstash.c;h=4aa47785f94ff5e414fafb795d527e15c4ce2bae;hp=b5a301f24d7a5f8b0a5f7d51703ca4cf38e2109c;hb=9822175d2b349be1ed7a704d3a56dc912f5a7510;hpb=10f751c06bb3dbc2afed0e80ecfbd6242e12d538 diff --git a/builtin/stash.c b/builtin/stash.c index b5a301f24d..4aa47785f9 100644 --- a/builtin/stash.c +++ b/builtin/stash.c @@ -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(); } }