diff options
author | Salikh Zakirov <salikh.zakirov@gmail.com> | 2007-08-16 02:01:43 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-08-15 14:28:34 -0700 |
commit | 2ed2c222dfe372385dc562fb5dc246d5595c1eae (patch) | |
tree | 9bb5bb65664acc05dc4238793c07e08314f58ae1 /t | |
parent | a4882c27f8b3793d94b03fd503a0c67ad9772cf6 (diff) | |
download | git-2ed2c222dfe372385dc562fb5dc246d5595c1eae.tar.gz |
git-add -u paths... now works from subdirectory
git-add -u also takes the path limiters, but unlike the
command without the -u option, the code forgot that it
could be invoked from a subdirectory, and did not correctly
handle the prefix.
Signed-off-by: Salikh Zakirov <salikh@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t2200-add-update.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t2200-add-update.sh b/t/t2200-add-update.sh index 4c7c6af432..58cd7f31be 100755 --- a/t/t2200-add-update.sh +++ b/t/t2200-add-update.sh @@ -62,4 +62,18 @@ test_expect_success 'cache tree has not been corrupted' ' ' +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 |