def fetch(): cmd = ['git', 'fetch', get_remote(), 'refs/heads/{0}:refs/remotes/origin/{0}'.format(get_branch())] p = Popen(cmd, cwd=get_repository().workdir) status = p.wait() if status: raise GitError('git-fetch returned with exit status {}'.format(status))
def fetch(): cmd = [ 'git', 'fetch', get_remote(), 'refs/heads/{0}:refs/remotes/origin/{0}'.format(get_branch()), ] p = Popen(cmd, cwd=get_repository().workdir) status = p.wait() if status: raise GitError('git-fetch returned with exit status {}'.format(status))
def format(self, repo): return super().format(git_orm.get_remote())
def clean(self, value): git_orm.set_remote(value) return git_orm.get_remote()