From 01ce91cdef8367719d03cab03b3f49b0113f4f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E7=95=85?= <631866165@qq.com> Date: Wed, 26 Aug 2020 15:42:48 +0800 Subject: [PATCH] fix(push): complete TODO --- subcmds/push.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subcmds/push.py b/subcmds/push.py index 1e0495f..d2000d6 100644 --- a/subcmds/push.py +++ b/subcmds/push.py @@ -360,7 +360,6 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ sys.exit(1) # if not create new branch, check whether branch has new commit. - # TODO check branch existed status if branch: for project in project_list: branch_tmp = branch @@ -368,8 +367,9 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ project.GetUploadableBranch(branch) is None): continue branch_tmp = project.GetBranch(branch_tmp) - rb = ReviewableBranch(project, branch_tmp, branch_tmp.LocalMerge) - pending.append((project, [rb])) + if branch_tmp.LocalMerge: + rb = ReviewableBranch(project, branch_tmp, branch_tmp.LocalMerge) + pending.append((project, [rb])) else: for project in project_list: