summaryrefslogtreecommitdiff
path: root/g
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
commita16ea41c849a77680166702f112919e43551c4d0 (patch)
tree6135683f7c487ab99494c4cb7cc2b471cd28f5fd /g
parentab9ff28ca4dfb4c703c76a34b1990dbd847689ac (diff)
g: Configure git's push.default to tracking if it is not set.
Diffstat (limited to 'g')
-rwxr-xr-xg3
1 files changed, 3 insertions, 0 deletions
diff --git a/g b/g
index 77f6957eda4d..191daf72e94c 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