From 906d56754751c98874f7bdcf7e9eef56297b0ae6 Mon Sep 17 00:00:00 2001 From: Juan Jose Scarafia Date: Thu, 21 Oct 2021 11:53:36 -0300 Subject: [PATCH] [IMP] re-enable _make_default_branch Now it's working properly --- tools/migrate_branch.py | 3 +-- tools/migrate_branch_empty.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/migrate_branch.py b/tools/migrate_branch.py index 650f17d7b..e3474a858 100644 --- a/tools/migrate_branch.py +++ b/tools/migrate_branch.py @@ -323,8 +323,7 @@ def _migrate_project(self, project): # TODO: Is this really needed? # self._delete_setup_dirs(repo, root_contents, modules) self._update_metafiles(repo, root_contents) - # TODO: GitHub is returning 404 - # self._make_default_branch(repo) + self._make_default_branch(repo) def do_migration(self, projects=None): if not projects: diff --git a/tools/migrate_branch_empty.py b/tools/migrate_branch_empty.py index 98ec71a93..002cc5f72 100644 --- a/tools/migrate_branch_empty.py +++ b/tools/migrate_branch_empty.py @@ -239,8 +239,7 @@ def _migrate_project(self, project): repo.create_ref( 'refs/heads/%s' % self.gh_target_branch, commit.sha, ) - # TODO: GitHub is returning 404 - # self._make_default_branch(repo) + self._make_default_branch(repo) def do_migration(self, projects=None): if not projects: