X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=builtin%2Fstash.c;fp=builtin%2Fstash.c;h=372fbdb7ac059cb858ae959266bd1ce0603b0752;hp=ab30d1e9203b42dec154b4b171f74ba7fec1b6b7;hb=df53c80822735ddd30638ba77be3face438d5ad8;hpb=34933d0eff5d4c91fae6ad6f71a6e6a69a496ced diff --git a/builtin/stash.c b/builtin/stash.c index ab30d1e920..372fbdb7ac 100644 --- a/builtin/stash.c +++ b/builtin/stash.c @@ -481,13 +481,12 @@ static int do_apply_stash(const char *prefix, struct stash_info *info, if (ret) return -1; + /* read back the result of update_index() back from the disk */ discard_cache(); + read_cache(); } - if (quiet) { - if (refresh_and_write_cache(REFRESH_QUIET, 0, 0)) - warning("could not refresh index"); - } else { + if (!quiet) { struct child_process cp = CHILD_PROCESS_INIT; /*