[PATCH v2 12/14] t/t5510-fetch: don't use remotes-file
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Jun 22, 2013, 07:58 UTC
- Message-ID
- <1371887901-5659-13-git-send-email-artagnon@gmail.com>
- In-Reply-To
- <1371887901-5659-1-git-send-email-artagnon@gmail.com>
Replace it with the equivalent gitconfig configuration, using the results of a test in t/t5505-remote.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> --- t/t5510-fetch.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index fde6891..47aeac2 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -46,12 +46,9 @@ test_expect_success "clone and setup child repos" ' cd three && git config branch.master.remote two && git config branch.master.merge refs/heads/one && - mkdir -p .git/remotes && - { - echo "URL: ../two/.git/" - echo "Pull: refs/heads/master:refs/heads/two" - echo "Pull: refs/heads/one:refs/heads/one" - } >.git/remotes/two + git config remote.two.url "../two/.git/" && + git config remote.two.fetch "refs/heads/master:refs/heads/two" && + git config --add remote.two.fetch "refs/heads/one:refs/heads/one" ) && git clone . bundle && git clone . seven
-- 1.8.3.1.498.gacf2885