{"thread":{"id":"28576","subject":"[PATCH 4/4] Add test showing git-fetch groks gitfiles","startedAt":"2011-10-04T20:09:23Z","lastAt":"2011-10-04T20:09:23Z","messageCount":1,"participants":["Phil Hord"],"isPatch":true,"patchVersion":1,"patchTotal":4},"messages":[{"id":"176872","messageId":"CABURp0qH37rH7kW7Po+azGQBZPfYHO3iPVJVhNZJr+k=TRN3yQ@mail.gmail.com","threadId":"28576","inReplyTo":null,"subject":"[PATCH 4/4] Add test showing git-fetch groks gitfiles","fromName":"Phil Hord","fromEmail":"phil.hord@gmail.com","sentAt":"2011-10-04T20:09:23Z","receivedAt":"2011-10-04T20:09:23Z","isPatch":true,"sender":{"key":"phil.hord@gmail.com","avatar":"https://avatars.githubusercontent.com/u/123908?v=4"},"body":"Add a test for two subtly different cases: 'git fetch path/.git'\nand 'git fetch path' to confirm that transport recognizes both\npaths as git repositories when using the gitfile mechanism.\n\nSigned-off-by: Phil Hord <hordp@cisco.com>\n\ndiff --git a/t/t5601-clone.sh b/t/t5601-clone.sh\nindex e810314..87ee016 100755\n--- a/t/t5601-clone.sh\n+++ b/t/t5601-clone.sh\n@@ -206,6 +206,20 @@ test_expect_success 'clone from .git file' '\n \tgit clone dst/.git dst2\n '\n\n+test_expect_success 'fetch from .git gitfile' '\n+\t(\n+\t\tcd dst2 &&\n+\t\tgit fetch ../dst/.git\n+\t)\n+'\n+\n+test_expect_success 'fetch from gitfile parent' '\n+\t(\n+\t\tcd dst2 &&\n+\t\tgit fetch ../dst\n+\t)\n+'\n+\n test_expect_success 'clone separate gitdir where target already exists' '\n \trm -rf dst &&\n \ttest_must_fail git clone --separate-git-dir realgitdir src dst\n-- \n1.7.7.503.g26392.dirty\n"}]}