[PATCH] Allow file removal when "git commit --all" is used.
[git.git] / git-commit-script
index 15d0391..de298b7 100755 (executable)
@@ -88,13 +88,13 @@ esac
 case "$all,$#" in
 t,*)
        git-diff-files --name-only -z |
-       xargs -0 git-update-cache -q --
+       xargs -0 git-update-cache -q --remove --
        ;;
 ,0)
        ;;
 *)
        git-diff-files --name-only -z "$@" |
-       xargs -0 git-update-cache -q --
+       xargs -0 git-update-cache -q --remove --
        ;;
 esac || exit 1
 git-update-cache -q --refresh || exit 1