diff --git a/stgit/lib/git/iw.py b/stgit/lib/git/iw.py index b264b8be..1829f148 100644 --- a/stgit/lib/git/iw.py +++ b/stgit/lib/git/iw.py @@ -332,9 +332,9 @@ def refresh_index(self): def update_index(self, paths): """Update the index with files from the worktree. C{paths} is an iterable of paths relative to the root of the repository.""" - self.run(['git', 'update-index', '--remove', '-z', '--stdin']).input_nulterm( - paths - ).discard_output() + self.run( + ['git', 'update-index', '--remove', '--add', '-z', '--stdin'] + ).input_nulterm(paths).discard_output() def worktree_clean(self): """Check whether the worktree is clean relative to index."""