From f927229159fb2b0a4d34204b57f5b05c2789273a Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 3 Dec 2010 12:35:23 +0100 Subject: g: Configure git's push.default to tracking if it is not set. --- g | 3 +++ 1 file changed, 3 insertions(+) diff --git a/g b/g index 77f6957ed..191daf72e 100755 --- a/g +++ b/g @@ -31,6 +31,9 @@ function update_hooks() ln -s "$HOOKDIR/$H" "$HOOK" fi done + if [ -z "$(git config push.default)" ] ; then + git config push.default tracking + fi } # extra params for some commands, like log -- cgit v1.2.3