Commit 0c3c64db authored by Florian Fischer's avatar Florian Fischer
Browse files

fetch mrs from the emper repo

parent 6ef16735
......@@ -352,6 +352,24 @@ def prepare_client(data_dir: Path):
def repo_fetch():
"""Fetch the emper repo"""
def repo_fetch_all():
"""Fetch all remotes in the emper repo"""
cmd = 'git fetch --all'.split()
cmd_run(cmd, log, cwd=REPO)
def repo_fetch_mrs():
"""Fetch all merge requests from the emper repo"""
cmd = 'git fetch origin refs/merge-requests/*/head:refs/remotes/origin/merge-requests/*'
cmd_run(cmd, log, cwd=REPO)
def checkout_and_fetch_repo(fetch=True):
"""Clone the emper subproject and fetch it"""
if not Path(REPO).exists():
......@@ -360,8 +378,7 @@ def checkout_and_fetch_repo(fetch=True):
if fetch:
# fetch the emper repository to be sure we have the most recent version
emper_fetch_cmd = 'git fetch --all'
cmd_run(emper_fetch_cmd, log, cwd=REPO)
def update_flavor(flavor_dir, checkout):
Supports Markdown
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