summaryrefslogtreecommitdiff
path: root/t/t2200-add-update.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-03-28 21:21:42 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-03-28 21:21:42 -0700
commitcc64c6970a0d50ecb75ba902d406bac7ea461f97 (patch)
tree9b13255ef2b1e46062b90f0bc42bbacc0b56f201 /t/t2200-add-update.sh
parentt9350: fix careless use of "cd" (diff)
parenttest for add with non-existent pathspec (diff)
downloadtgif-cc64c6970a0d50ecb75ba902d406bac7ea461f97.tar.xz
Merge branch 'cp/add-u-pathspec' into maint
* 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