summaryrefslogtreecommitdiffstats
path: root/src/pyfedpkg
diff options
context:
space:
mode:
authorJochen Schmitt <Jochen@herr-schmitt.de>2010-09-16 20:05:46 +0200
committerJesse Keating <jkeating@redhat.com>2010-09-20 13:17:49 -0700
commitf9443e37b7ca3863ba79f9603d074bcd7c749abe (patch)
tree98670e6b6dbd4fb815febe3c7d8b40f6c4591d6d /src/pyfedpkg
parent16a524c980984505914635c9c232366bf5aa27d2 (diff)
downloadfedora-packager-f9443e37b7ca3863ba79f9603d074bcd7c749abe.tar.gz
fedora-packager-f9443e37b7ca3863ba79f9603d074bcd7c749abe.tar.xz
fedora-packager-f9443e37b7ca3863ba79f9603d074bcd7c749abe.zip
Implementation of a pull command
Hello Jesse, this patch implemts a pull command for fedpkg. Best Regards: Jochen Schmitt
Diffstat (limited to 'src/pyfedpkg')
-rw-r--r--src/pyfedpkg/__init__.py7
1 files changed, 7 insertions, 0 deletions
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"""