{"thread":{"id":"9512","subject":"[PATCH/BUG] Test for git-add -u from the subdirectory","startedAt":"2007-08-13T10:54:15Z","lastAt":"2007-08-13T10:54:15Z","messageCount":1,"participants":["Salikh Zakirov"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"50631","messageId":"20070813105415.GC14775@makoto.sib","threadId":"9512","inReplyTo":null,"subject":"[PATCH/BUG] Test for git-add -u from the subdirectory","fromName":"Salikh Zakirov","fromEmail":"salikh.zakirov@gmail.com","sentAt":"2007-08-13T10:54:15Z","receivedAt":"2007-08-13T10:54:15Z","isPatch":true,"sender":{"key":"salikh.zakirov@gmail.com","avatar":null},"body":"---\n\nThe following modification to the t2200-add-update.sh\nshows that the git-add -u from the subdirectory does not work\nwith path limiters.\n\nThe test modification alone fails on master. I've tried\nthe revision 93c44d49 'git-add: allow path limiting with -u',\nwhich introduced 'git-add -u', and it fails the test as well.\n\nSo technically, this feature never worked.\nI use it as\n\n    [alias]\n\tci = add -u\n\t# used to be\n\t#ci = update-index\n\t# and worked\n\nand the simplest workaround is to use git-add instead of git-ci.\n\n t/t2200-add-update.sh |    8 ++++++++\n 1 files changed, 8 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t2200-add-update.sh b/t/t2200-add-update.sh\nindex 0a703af..93c007d 100755\n--- a/t/t2200-add-update.sh\n+++ b/t/t2200-add-update.sh\n@@ -35,4 +35,12 @@ test_expect_success 'update did not touch other tracked files' \\\n test_expect_success 'update did not touch untracked files' \\\n   'test \"`git diff-files --name-status dir/other`\" = \"\"'\n \n+test_expect_success 'more changes' 'echo modified >> dir/sub'\n+\n+test_expect_success 'update from subdirectory' \\\n+  '(cd dir; git add -u sub)'\n+\n+test_expect_success 'update touched correct path' \\\n+  'test \"`git diff-files --name-status dir/sub`\" = \"\"'\n+\n test_done\n-- \n1.5.2.rc3.5.g93c44\n"}]}