diff options
author | Jan Holesovsky <kendy@suse.cz> | 2010-12-03 12:35:23 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-12-03 12:36:19 +0100 |
commit | f927229159fb2b0a4d34204b57f5b05c2789273a (patch) | |
tree | c0e41deecb1060330afe156b3e770fcae2480dcc | |
parent | 41594330aff487cc3e9607be9bb3c078640d662c (diff) |
g: Configure git's push.default to tracking if it is not set.
-rwxr-xr-x | g | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |