summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2010-08-10 11:35:08 +0200
committerJesse Keating <jkeating@redhat.com>2010-08-20 15:06:47 -0700
commit0e4fa26b8e7444ece20ab39450783ebfc7eef235 (patch)
tree4e91e0b2f7163068e0413999b82a6524a4cfd631
parentc93afb0b498718b554403637077496f75adf9be5 (diff)
downloadfedora-packager-0e4fa26b8e7444ece20ab39450783ebfc7eef235.zip
fedora-packager-0e4fa26b8e7444ece20ab39450783ebfc7eef235.tar.gz
fedora-packager-0e4fa26b8e7444ece20ab39450783ebfc7eef235.tar.xz
clone: set repo's push.default to tracking
clone: set repo's push.default to tracking
-rw-r--r--src/pyfedpkg/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index e04db6b..cdccd7f 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -377,6 +377,10 @@ def clone(module, user, path=None, branch=None, bare_dir=None):
log.debug('Cloning %s' % giturl)
cmd.extend([giturl])
_run_command(cmd)
+
+ # Set push.default to "tracking"
+ repo = git.Repo(module)
+ repo.git.config('--add', 'push.default', 'tracking')
return
def clone_with_dirs(module, user, path=None):