From f9443e37b7ca3863ba79f9603d074bcd7c749abe Mon Sep 17 00:00:00 2001 From: Jochen Schmitt Date: Thu, 16 Sep 2010 20:05:46 +0200 Subject: Implementation of a pull command Hello Jesse, this patch implemts a pull command for fedpkg. Best Regards: Jochen Schmitt --- src/pyfedpkg/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/pyfedpkg/__init__.py') diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index c975afc..790cb93 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -1543,7 +1543,14 @@ class PackageModule: # Run the command _run_command(cmd, shell=True) return + + def pull(self): + """Pull changes from the main repository""" + cmd = ['git', 'pull'] + _run_command(cmd) + return + def push(self): """Push changes to the main repository""" -- cgit