diff --git a/t/t2200-add-update.sh b/t/t2200-add-update.sh
index 4c7c6af432bd788350d322f2debc4bcea7f1636c..61d08bb431ca18d6223e944cd4ca43fba6c1d332 100755 (executable)
--- a/t/t2200-add-update.sh
+++ b/t/t2200-add-update.sh
#!/bin/sh
-test_description='git-add -u with path limiting
+test_description='git add -u with path limiting
This test creates a working tree state with three files:
dir/sub (previously committed, modified)
dir/other (untracked)
-and issues a git-add -u with path limiting on "dir" to add
+and issues a git add -u with path limiting on "dir" to add
only the updates to dir/sub.'
. ./test-lib.sh
'
+test_expect_success 'update from a subdirectory' '
+ (
+ cd dir1 &&
+ echo more >sub2 &&
+ git add -u sub2
+ )
+'
+
+test_expect_success 'change gets noticed' '
+
+ test "$(git diff-files --name-status dir1)" = ""
+
+'
+
test_done