Do not create $GIT_DIR/remotes/ directory anymore.
Because we do not use --no-separate-remote anymore, there is no reason to create that directory from the template. t5510 test is updated to test both $GIT_DIR/remotes/ based configuration and $GIT_DIR/config variable (credits to Johannes). Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Dec 19, 2006 at 01:50 UTC
75c384efb52d0e3eb1e8c2f53668b4066fe6a8d6
2 files changed
+3
-5
t/t5510-fetch.sh
+3
-4
@@ -23,15 +23,14 @@ test_expect_success "clone and setup child repos" '
23
git clone . two &&
24
cd two &&
25
git repo-config branch.master.remote one &&
26
- {
27
- echo "URL: ../one/.git/"
28
- echo "Pull: refs/heads/master:refs/heads/one"
29
- } >.git/remotes/one
26
+ git repo-config remote.one.url ../one/.git/ &&
27
+ git repo-config remote.one.fetch refs/heads/master:refs/heads/one &&
28
cd .. &&
29
git clone . three &&
30
cd three &&
31
git repo-config branch.master.remote two &&
32
git repo-config branch.master.merge refs/heads/one &&
33
+ mkdir -p .git/remotes &&
34
{
35
echo "URL: ../two/.git/"
36
echo "Pull: refs/heads/master:refs/heads/two"
templates/remotes--
deleted
-1
@@ -1 +0,0 @@
1
-: this is just to ensure the directory exists.