From: Junio C Hamano Date: Sat, 20 Aug 2005 10:05:42 +0000 (-0700) Subject: [PATCH] Use .git/remote/origin, not .git/branches/origin. X-Git-Tag: v0.99.5~2^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6687f8fea22e1e43ab163a8fe180155a0a0a956a;p=git.git [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 --- diff --git a/git-clone-script b/git-clone-script index 99c245963..f988b8c9c 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" diff --git a/templates/remotes-- b/templates/remotes-- new file mode 100644 index 000000000..fae88709a --- /dev/null +++ b/templates/remotes-- @@ -0,0 +1 @@ +: this is just to ensure the directory exists.