From 0e4fa26b8e7444ece20ab39450783ebfc7eef235 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Tue, 10 Aug 2010 11:35:08 +0200 Subject: clone: set repo's push.default to tracking clone: set repo's push.default to tracking --- src/pyfedpkg/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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): -- cgit