summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 92c533e)
raw | patch | inline | side by side (parent: 92c533e)
author | Junio C Hamano <junkio@cox.net> | |
Sat, 20 Aug 2005 10:05:42 +0000 (03:05 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 24 Aug 2005 23:50:52 +0000 (16:50 -0700) |
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>
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>
git-clone-script | patch | blob | history | |
templates/remotes-- | [new file with mode: 0644] | patch | blob |
diff --git a/git-clone-script b/git-clone-script
index 99c2459631f2bdcc6382bd2b5fc03090e1888ee3..f988b8c9c79fbb9ec9c3cad556cb4c9d51984475 100755 (executable)
--- a/git-clone-script
+++ b/git-clone-script
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"
diff --git a/templates/remotes-- b/templates/remotes--
--- /dev/null
+++ b/templates/remotes--
@@ -0,0 +1 @@
+: this is just to ensure the directory exists.