Skip to content

Commit b998d94

Browse files
committed
squash
1 parent b0ccf30 commit b998d94

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/process-git-request.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ def process_git_request(fname, target_branch, source_branch, prj_dir):
2323
# print(f"Working Dir : {working_dir}")
2424
os.chdir(working_dir)
2525
# print(f"pwd : {os.getcwd()}")
26-
git_cmd = f"git checkout {target_branch}"
27-
gitbr_out, gitbr_err = subprocess.Popen(git_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).communicate()
28-
if gitbr_err:
29-
print(f"Could not check out target branch {target_branch} {gitbr_err}")
30-
return 1
31-
git_cmd = f"git checkout -b {source_branch}"
26+
# git_cmd = f"git checkout {target_branch}"
27+
# gitbr_out, gitbr_err = subprocess.Popen(git_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).communicate()
28+
# if gitbr_err:
29+
# print(f"Could not check out target branch {target_branch} {gitbr_err}")
30+
# return 1
31+
git_cmd = f"git checkout -b {source_branch} origin/{source_branch}"
3232
gitbr_out, gitbr_err = subprocess.Popen(git_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).communicate()
3333
if gitbr_err:
3434
print(f"Could not check out source branch {source_branch} {gitbr_err}")

0 commit comments

Comments
 (0)