Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c94deb

Browse files
committed
Merge pull request libgit2#3239 from git-up/stash_index
Write modified index in git_stash_apply()
2 parents e96a97f + e35b947 commit 0c94deb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/stash.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,8 @@ int git_stash_apply(
819819

820820
NOTIFY_PROGRESS(opts, GIT_STASH_APPLY_PROGRESS_DONE);
821821

822+
error = git_index_write(repo_index);
823+
822824
cleanup:
823825
git_index_free(untracked_index);
824826
git_index_free(modified_index);

0 commit comments

Comments
 (0)