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 | a16ea41c849a77680166702f112919e43551c4d0 (patch) | |
tree | 6135683f7c487ab99494c4cb7cc2b471cd28f5fd /g | |
parent | ab9ff28ca4dfb4c703c76a34b1990dbd847689ac (diff) |
g: Configure git's push.default to tracking if it is not set.
Diffstat (limited to 'g')
-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 |