Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
i4
manycore
emper-io-eval
Commits
0c3c64db
Commit
0c3c64db
authored
Aug 28, 2021
by
Florian Fischer
Browse files
fetch mrs from the emper repo
parent
6ef16735
Changes
1
Hide whitespace changes
Inline
Side-by-side
bench/emper.py
View file @
0c3c64db
...
...
@@ -352,6 +352,24 @@ def prepare_client(data_dir: Path):
build_emper
(
CLIENT_DIR
)
def
repo_fetch
():
"""Fetch the emper repo"""
repo_fetch_all
()
repo_fetch_mrs
()
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
)
repo_fetch
()
def
update_flavor
(
flavor_dir
,
checkout
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment