~michel-slm/myrepos-utils

337bb22756642ebf61d7144b499e55cee8500871 — Michel Lind 4 months ago d78cc15
config: after configuring git remotes, fetch them

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
1 files changed, 3 insertions(+), 0 deletions(-)

M myrepos_utils/utils.py
M myrepos_utils/utils.py => myrepos_utils/utils.py +3 -0
@@ 41,6 41,9 @@ def get_config_repo_cmd(
    if extra_git_remotes:
        for remote_name, remote_url in extra_git_remotes:
            checkout_full_cmd_list.append(f"git remote add {remote_name} {remote_url}")
        # intentionally do this later in case git fetch fails
        for remote_name, _ in extra_git_remotes:
            checkout_full_cmd_list.append(f"git fetch {remote_name}")

    checkout_full_cmd = " && ".join(checkout_full_cmd_list)