aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2016-07-09 02:24:54 +0200
committerPer Øyvind Karlsen <proyvind@moondrake.org>2016-07-09 02:24:54 +0200
commit800d469cf1c714ef40d53c42431b232209fdc470 (patch)
tree7e4ab233daa4f7a437f93f96eba4ea32371abaf9
parent09539112eb8f1ae5bf8bb9aa12ef505fcb39deae (diff)
downloadmgarepo-800d469cf1c714ef40d53c42431b232209fdc470.tar
mgarepo-800d469cf1c714ef40d53c42431b232209fdc470.tar.gz
mgarepo-800d469cf1c714ef40d53c42431b232209fdc470.tar.bz2
mgarepo-800d469cf1c714ef40d53c42431b232209fdc470.tar.xz
mgarepo-800d469cf1c714ef40d53c42431b232209fdc470.zip
add pull() function
-rw-r--r--MgaRepo/git.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/MgaRepo/git.py b/MgaRepo/git.py
index 3576893..ae2db6e 100644
--- a/MgaRepo/git.py
+++ b/MgaRepo/git.py
@@ -166,6 +166,11 @@ class GIT(VCS):
status, output = self._execVcs(*cmd, **kwargs)
return status, output
+ def pull(self, *args, **kwargs):
+ cmd = ["pull"] + list(args)
+ status, output = self._execVcs(*cmd, **kwargs)
+ return status, output
+
def push(self, *args, **kwargs):
cmd = ["push"] + list(args)
status, output = self._execVcs(*cmd, **kwargs)