Merge branch 'tg/stash-refresh-index'
Recent update to "git stash pop" made the command empty the index when run with the "--quiet" option, which has been corrected. * tg/stash-refresh-index: stash: make sure we have a valid index before writing it
This commit is contained in:
@ -483,13 +483,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;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user