Merge pull request #3239 from git-up/stash_index Write modified index in git_stash_apply()
diff --git a/src/stash.c b/src/stash.c
index a7a288c..8f512d4 100644
--- a/src/stash.c
+++ b/src/stash.c
@@ -819,6 +819,8 @@ int git_stash_apply(
NOTIFY_PROGRESS(opts, GIT_STASH_APPLY_PROGRESS_DONE);
+ error = git_index_write(repo_index);
+
cleanup:
git_index_free(untracked_index);
git_index_free(modified_index);