summaryrefslogtreecommitdiff
path: root/t/t2200-add-update.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-03-10 15:32:02 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-03-10 15:32:02 -0800
commite25ccff14071ec3628153992acc82b9922e16938 (patch)
tree28a2b00d582e415fe08453558bd91a2f17c872e9 /t/t2200-add-update.sh
parentMakefile: update check-docs target (diff)
parenttest for add with non-existent pathspec (diff)
downloadtgif-e25ccff14071ec3628153992acc82b9922e16938.tar.xz
Merge branch 'cp/add-u-pathspec'
* cp/add-u-pathspec: test for add with non-existent pathspec git add -u: die on unmatched pathspec
Diffstat (limited to 't/t2200-add-update.sh')
-rwxr-xr-xt/t2200-add-update.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t2200-add-update.sh b/t/t2200-add-update.sh
index 912075063b..2ad2819a34 100755
--- a/t/t2200-add-update.sh
+++ b/t/t2200-add-update.sh
@@ -176,4 +176,9 @@ test_expect_success 'add -u resolves unmerged paths' '
'
+test_expect_success '"add -u non-existent" should fail' '
+ test_must_fail git add -u non-existent &&
+ ! (git ls-files | grep "non-existent")
+'
+
test_done