From 157e0bc2ff7ae5026d1d33724f3353acf8de126e Mon Sep 17 00:00:00 2001 From: yixinglu <2520865+yixinglu@users.noreply.github.com> Date: Mon, 22 Nov 2021 14:46:31 +0800 Subject: [PATCH] Fix remote URL --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 542f8b3..8031f27 100755 --- a/main.py +++ b/main.py @@ -106,6 +106,8 @@ def apply_patch(branch, comm_ci): git.checkout("-b", branch, "origin/master") git_commit = comm_ci.commit try: + git.remote('add', 'community', 'https://github.com/{}.git'.format(comm_repo.full_name)) + git.fetch('community', 'master') git('cherry-pick', git_commit) except Exception as e: print(">>> Fail to apply the patch to branch {}, cause: {}".format(branch, e))