"Mother/Father of all git commands"
def __init__(self, cmd, args=[], **kwargs):
Command.__init__(self, 'git', [cmd] + args, **kwargs)
+ self.run_error = "Couldn't run git %s" % cmd
class GitInit(GitCommand):
self.run_error = 'Couldn\'t pull "%s" to "%s"' % (branch, repo)
+class GitFetch(GitCommand):
+ """Wrap git fetch"""
+ def __init__(self, remote = None):
+ opts = []
+ if remote:
+ opts += [remote]
+ GitCommand.__init__(self, 'fetch', opts)
+
+
class GitMerge(GitCommand):
"""Wrap git merge"""
def __init__(self, branch, verbose=False):