From 800d469cf1c714ef40d53c42431b232209fdc470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Sat, 9 Jul 2016 02:24:54 +0200 Subject: add pull() function --- MgaRepo/git.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.1