summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSteven Grimm <koreth@midwinter.com>2007-04-16 07:53:24 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-04-17 07:19:11 (GMT)
commitbb1faf0d5bc53b193bbe25e7425458c8eb85efa3 (patch)
tree46db8d5a9e7845ebe78ee2148a5bd69c8b989268 /t
parentf948792990f82a35bf0c98510e7511ef8acb9cd3 (diff)
downloadgit-bb1faf0d5bc53b193bbe25e7425458c8eb85efa3.zip
git-bb1faf0d5bc53b193bbe25e7425458c8eb85efa3.tar.gz
git-bb1faf0d5bc53b193bbe25e7425458c8eb85efa3.tar.bz2
Add --ignore-unmatch option to exit with zero status when no files are removed.
Signed-off-by: Steven Grimm <koreth@midwinter.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-rwxr-xr-xt/t3600-rm.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t3600-rm.sh b/t/t3600-rm.sh
index da9da92..0a97b75 100755
--- a/t/t3600-rm.sh
+++ b/t/t3600-rm.sh
@@ -84,6 +84,10 @@ test_expect_success \
'When the rm in "git-rm -f" fails, it should not remove the file from the index' \
'git-ls-files --error-unmatch baz'
+test_expect_success 'Remove nonexistent file with --ignore-unmatch' '
+ git rm --ignore-unmatch nonexistent
+'
+
test_expect_success '"rm" command printed' '
echo frotz > test-file &&
git add test-file &&