Skip to content

Commit

Permalink
Do not create $GIT_DIR/remotes/ directory anymore.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Dec 19, 2006
1 parent 5fed466 commit 75c384e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions t/t5510-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ test_expect_success "clone and setup child repos" '
git clone . two &&
cd two &&
git repo-config branch.master.remote one &&
{
echo "URL: ../one/.git/"
echo "Pull: refs/heads/master:refs/heads/one"
} >.git/remotes/one
git repo-config remote.one.url ../one/.git/ &&
git repo-config remote.one.fetch refs/heads/master:refs/heads/one &&
cd .. &&
git clone . three &&
cd three &&
git repo-config branch.master.remote two &&
git repo-config branch.master.merge refs/heads/one &&
mkdir -p .git/remotes &&
{
echo "URL: ../two/.git/"
echo "Pull: refs/heads/master:refs/heads/two"
Expand Down
1 change: 0 additions & 1 deletion templates/remotes--

This file was deleted.

0 comments on commit 75c384e

Please sign in to comment.