diff options
Diffstat (limited to 'src/pyfedpkg/__init__.py')
-rw-r--r-- | src/pyfedpkg/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index 19d1c5c..94a721e 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -367,6 +367,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): |