Merge branch 'ap/clone-origin'
authorJunio C Hamano <junkio@cox.net>
Wed, 13 Dec 2006 19:03:33 +0000 (11:03 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 13 Dec 2006 19:03:33 +0000 (11:03 -0800)
* ap/clone-origin:
Explicitly add the default "git pull" behaviour to .git/config on clone

git-clone.sh
index 0ace989fdee82bc1c9bd19fe42d58872f22c2d9c..1f5d07a057ed04dd9ffc7eb705d0c752d250bf72 100755 (executable)
@@ -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