aboutsummaryrefslogtreecommitdiff
path: root/git-clone.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-12-06 10:48:08 -0800
committerJunio C Hamano <junkio@cox.net>2006-12-06 10:48:08 -0800
commitc0b7391bf5dd314523b8c6ea29ffafc8769f2eb1 (patch)
tree0bafdfabd862ceef117661dca886249fe08eb1f9 /git-clone.sh
parent2d13b732e3b2aca685615f353e3353e26cdbd9b3 (diff)
parent255cae88bcc8fcb0088459df13b55fa3d311b9e2 (diff)
downloadgit-c0b7391bf5dd314523b8c6ea29ffafc8769f2eb1.tar.gz
git-c0b7391bf5dd314523b8c6ea29ffafc8769f2eb1.tar.xz
Merge
Diffstat (limited to 'git-clone.sh')
-rwxr-xr-xgit-clone.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/git-clone.sh b/git-clone.sh
index 89640396e..0ace989fd 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -377,9 +377,9 @@ then
*) origin_track="$remote_top/$origin"
git-update-ref "refs/heads/$origin" "$head_sha1" ;;
esac &&
- echo >"$GIT_DIR/remotes/$origin" \
- "URL: $repo
-Pull: refs/heads/$head_points_at:$origin_track" &&
+ git-repo-config remote."$origin".url "$repo" &&
+ git-repo-config remote."$origin".fetch \
+ "refs/heads/$head_points_at:$origin_track" &&
(cd "$GIT_DIR/$remote_top" && find . -type f -print) |
while read dotslref
do
@@ -393,8 +393,8 @@ Pull: refs/heads/$head_points_at:$origin_track" &&
then
continue
fi
- echo "Pull: refs/heads/${name}:$remote_top/${name}"
- done >>"$GIT_DIR/remotes/$origin" &&
+ git-repo-config remote."$origin".fetch "refs/heads/${name}:$remote_top/${name}" '^$'
+ done &&
case "$use_separate_remote" in
t)
rm -f "refs/remotes/$origin/HEAD"