Skip to content

Commit

Permalink
Update stash_unstaged_changes to use stage_files
Browse files Browse the repository at this point in the history
Use stage_files instead of stage_files_from_status_list.
  • Loading branch information
bjoernricks committed May 16, 2022
1 parent 592ac29 commit 2c90e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autohooks/api/git.py
Expand Up @@ -331,7 +331,7 @@ def stash_changes(self) -> None:
# add ref to be able to restore index manually
_set_ref(INDEX_REF, self.index)
# add changes from files to index
stage_files_from_status_list(self.partially_staged)
stage_files(self.partially_staged)
# save index as working tree
self.working_tree = _write_tree()
# add ref to be able to restore working tree manually
Expand Down

0 comments on commit 2c90e21

Please sign in to comment.