X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-add--interactive.perl;h=dc3038091dd7db7dd4bb96cf8832df789b4d127f;hb=928a559000e1c9ba0d570c5d3d4e11155b4d1ffd;hp=0057f865886753afb9493a2e82b11fe14aa91529;hpb=e27e609bbf81271318d99f2643f378f3fde6c6c6;p=git.git diff --git a/git-add--interactive.perl b/git-add--interactive.perl index 0057f8658..dc3038091 100755 --- a/git-add--interactive.perl +++ b/git-add--interactive.perl @@ -1,6 +1,5 @@ #!/usr/bin/perl -w - use strict; sub run_cmd_pipe { @@ -282,7 +281,7 @@ sub update_cmd { HEADER => $status_head, }, @mods); if (@update) { - system(qw(git update-index --add --), + system(qw(git update-index --add --remove --), map { $_->{VALUE} } @update); say_n_paths('updated', @update); }