summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-12-13 11:03:33 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2006-12-13 11:03:33 -0800
commitf88bd392e6aa57a985604b13f6ade47f241b3c77 (patch)
treeac340bf1b3d5856cb8813c2ffc68e82c1285f54d
parentMerge branch 'jc/numstat' (diff)
parentExplicitly add the default "git pull" behaviour to .git/config on clone (diff)
downloadtgif-f88bd392e6aa57a985604b13f6ade47f241b3c77.tar.xz
Merge branch 'ap/clone-origin'
* ap/clone-origin: Explicitly add the default "git pull" behaviour to .git/config on clone
-rwxr-xr-xgit-clone.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-clone.sh b/git-clone.sh
index 0ace989fde..1f5d07a057 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -400,7 +400,9 @@ then
rm -f "refs/remotes/$origin/HEAD"
git-symbolic-ref "refs/remotes/$origin/HEAD" \
"refs/remotes/$origin/$head_points_at"
- esac
+ esac &&
+ git-repo-config branch."$head_points_at".remote "$origin" &&
+ git-repo-config branch."$head_points_at".merge "refs/heads/$head_points_at"
esac
case "$no_checkout" in