summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-03-03 10:08:28 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2015-03-03 10:08:28 -0500
commit018fdbb5809469c917eb04c01e929050df30846f (patch)
tree73b832d3e55f66f7db73d2bcab515094a0500815 /src
parent72ca65d538d1e3ab7a9052613412bf121470dfd6 (diff)
parent09866d6f84a644c4dff258055c570d619fe7bad7 (diff)
downloadlibgit2-018fdbb5809469c917eb04c01e929050df30846f.tar.gz
Merge pull request #2913 from ethomson/stash_fixup
stash: correctly stash wd modified/index deleted
Diffstat (limited to 'src')
-rw-r--r--src/stash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stash.c b/src/stash.c
index 1cd64a6fe..8aa48cafe 100644
--- a/src/stash.c
+++ b/src/stash.c
@@ -313,8 +313,7 @@ static int build_workdir_tree(
if ((error = git_commit_tree(&b_tree, b_commit)) < 0)
goto cleanup;
- if ((error = git_diff_tree_to_workdir_with_index(
- &diff, repo, b_tree, &opts)) < 0)
+ if ((error = git_diff_tree_to_workdir(&diff, repo, b_tree, &opts)) < 0)
goto cleanup;
data.include_changed = true;