Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ap/clone-origin'
author
Junio C Hamano
<junkio@cox.net>
Wed, 13 Dec 2006 19:03:33 +0000
(11:03 -0800)
committer
Junio 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
patch
|
blob
|
history
raw
(from parent 1:
f5c589f
)
diff --git
a/git-clone.sh
b/git-clone.sh
index 0ace989fdee82bc1c9bd19fe42d58872f22c2d9c..1f5d07a057ed04dd9ffc7eb705d0c752d250bf72 100755
(executable)
--- 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