Example #1
0
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))
Example #2
0
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))
Example #3
0
 def format(self, repo):
     return super().format(git_orm.get_remote())
Example #4
0
 def clean(self, value):
     git_orm.set_remote(value)
     return git_orm.get_remote()