diff options
author | Pierre-Olivier Latour <pol@mac.com> | 2015-06-21 01:06:20 -0700 |
---|---|---|
committer | Pierre-Olivier Latour <pol@mac.com> | 2015-06-21 01:06:20 -0700 |
commit | e35b947bece8e3e6cecf5c7dbae014069404c445 (patch) | |
tree | d551b5f400150975a618c4f115fa3881cda3cd20 | |
parent | e96a97f18e8f961c434e4fa4fc2c7d950480b9e9 (diff) | |
download | libgit2-e35b947bece8e3e6cecf5c7dbae014069404c445.tar.gz |
Write modified index in git_stash_apply()
Same as with git_stash_save(), there's no reason not to write the index
to disk since it has been modified.
-rw-r--r-- | src/stash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stash.c b/src/stash.c index a7a288c25..8f512d4ad 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); |