Skip to content

Commit

Permalink
Merge branch 'ap/clone-origin'
Browse files Browse the repository at this point in the history
* ap/clone-origin:
  Explicitly add the default "git pull" behaviour to .git/config on clone
  • Loading branch information
Junio C Hamano committed Dec 13, 2006
2 parents f5c589f + 955289b commit f88bd39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f88bd39

Please sign in to comment.