[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>
This commit is contained in:
@ -127,6 +127,8 @@ yes,yes)
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Update origin.
|
# Update origin.
|
||||||
mkdir -p "$D/.git/branches/" &&
|
mkdir -p "$D/.git/remotes/" &&
|
||||||
rm -f "$D/.git/branches/origin" &&
|
rm -f "$D/.git/remotes/origin" &&
|
||||||
echo "$repo" >"$D/.git/branches/origin"
|
echo >"$D/.git/remotes/origin" \
|
||||||
|
"URL: $repo
|
||||||
|
Pull: master:origin"
|
||||||
|
1
templates/remotes--
Normal file
1
templates/remotes--
Normal file
@ -0,0 +1 @@
|
|||||||
|
: this is just to ensure the directory exists.
|
Reference in New Issue
Block a user