Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/gitPublic

Commit6687f8f

Browse files
author
Junio C Hamano
committed
[PATCH] Use .git/remote/origin, not .git/branches/origin.
Now multi-head fetch is complete, let's migrate thedefault configuration for new repositories created withthe "git clone" command.The original $GIT_DIR/branches is not deprecated yet, but createremotes directory by default from the templates as well.Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent92c533e commit6687f8f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

‎git-clone-script

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ yes,yes)
127127
esac
128128

129129
# Update origin.
130-
mkdir -p"$D/.git/branches/"&&
131-
rm -f"$D/.git/branches/origin"&&
132-
echo"$repo">"$D/.git/branches/origin"
130+
mkdir -p"$D/.git/remotes/"&&
131+
rm -f"$D/.git/remotes/origin"&&
132+
echo>"$D/.git/remotes/origin" \
133+
"URL:$repo
134+
Pull: master:origin"

‎templates/remotes--

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
: this is just to ensure the directory exists.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp