summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2010-12-03 12:35:23 +0100
committerJan Holesovsky <kendy@suse.cz>2010-12-03 12:36:19 +0100
commitf927229159fb2b0a4d34204b57f5b05c2789273a (patch)
treec0e41deecb1060330afe156b3e770fcae2480dcc
parent41594330aff487cc3e9607be9bb3c078640d662c (diff)
g: Configure git's push.default to tracking if it is not set.
-rwxr-xr-xg3
1 files changed, 3 insertions, 0 deletions
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