From 6e6f8be5bac8362bed172a2fdc932f0d98124159 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Fri, 24 Mar 2023 10:20:53 -0700 Subject: [PATCH] [migration-tools] Pull all branches prior to changing remote --- migration-tools/migrate-rosdistro.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migration-tools/migrate-rosdistro.py b/migration-tools/migrate-rosdistro.py index bb94fe4c8669b..eb2ed7d2d5a1b 100644 --- a/migration-tools/migrate-rosdistro.py +++ b/migration-tools/migrate-rosdistro.py @@ -8,7 +8,7 @@ import tempfile from bloom.commands.git.patch.common import get_patch_config, set_patch_config -from bloom.git import inbranch, show +from bloom.git import inbranch, show, track_branches import github import yaml @@ -138,6 +138,7 @@ def write_tracks_file(tracks, commit_msg=None): if release_repo.endswith('.git'): release_repo = release_repo[:-4] subprocess.check_call(['git', 'clone', remote_url]) + track_branches(None, release_repo) os.chdir(release_repo) tracks = read_tracks_file()