Commit ff98c289 authored by Elouan Martinet's avatar Elouan Martinet
Browse files

Pull all branches from remote Git repository

parent 39a79e13521d
......@@ -71,12 +71,20 @@ def _ghclone(path_url, destination):
def _ghpull(git_repo):
branches = check_output(
["git", "branch", "--format=%(refname:lstrip=2)"], cwd=git_repo
for branch in branches.splitlines():
"Fetching remote Git repository",
["git", "fetch", "-q", "origin", "master:master"],
"Fetching branch %s from remote Git repository" % branch,
["git", "fetch", "origin", "%s:%s" % (branch, branch)],
cmd("Updating Mercurial repository", ["hg", "pull"])
"Updating Mercurial repository",
["hg", "--config", "", "pull"],
cmd("Publishing master bookmark", ["hg", "phase", "-p", "master"])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment