summaryrefslogtreecommitdiff
path: root/git-clone-script
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-20 10:05:42 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-24 23:50:52 (GMT)
commit6687f8fea22e1e43ab163a8fe180155a0a0a956a (patch)
tree4d8711c6ccf0b21aa2a888a775680bd8bed5ad86 /git-clone-script
parent92c533ef0ea2cb43f0d7d493f006f5b4dfa7cda1 (diff)
downloadgit-6687f8fea22e1e43ab163a8fe180155a0a0a956a.zip
git-6687f8fea22e1e43ab163a8fe180155a0a0a956a.tar.gz
git-6687f8fea22e1e43ab163a8fe180155a0a0a956a.tar.bz2
[PATCH] Use .git/remote/origin, not .git/branches/origin.
Now multi-head fetch is complete, let's migrate the default configuration for new repositories created with the "git clone" command. The original $GIT_DIR/branches is not deprecated yet, but create remotes directory by default from the templates as well. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-clone-script')
-rwxr-xr-xgit-clone-script8
1 files changed, 5 insertions, 3 deletions
diff --git a/git-clone-script b/git-clone-script
index 99c2459..f988b8c 100755
--- a/git-clone-script
+++ b/git-clone-script
@@ -127,6 +127,8 @@ yes,yes)
esac
# Update origin.
-mkdir -p "$D/.git/branches/" &&
-rm -f "$D/.git/branches/origin" &&
-echo "$repo" >"$D/.git/branches/origin"
+mkdir -p "$D/.git/remotes/" &&
+rm -f "$D/.git/remotes/origin" &&
+echo >"$D/.git/remotes/origin" \
+"URL: $repo
+Pull: master:origin"