Skip to content

Commit

Permalink
squash
Browse files Browse the repository at this point in the history
  • Loading branch information
gvrose8192 committed Jan 14, 2025
1 parent b0ccf30 commit b998d94
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/process-git-request.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ def process_git_request(fname, target_branch, source_branch, prj_dir):
# print(f"Working Dir : {working_dir}")
os.chdir(working_dir)
# print(f"pwd : {os.getcwd()}")
git_cmd = f"git checkout {target_branch}"
gitbr_out, gitbr_err = subprocess.Popen(git_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).communicate()
if gitbr_err:
print(f"Could not check out target branch {target_branch} {gitbr_err}")
return 1
git_cmd = f"git checkout -b {source_branch}"
# git_cmd = f"git checkout {target_branch}"
# gitbr_out, gitbr_err = subprocess.Popen(git_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).communicate()
# if gitbr_err:
# print(f"Could not check out target branch {target_branch} {gitbr_err}")
# return 1
git_cmd = f"git checkout -b {source_branch} origin/{source_branch}"
gitbr_out, gitbr_err = subprocess.Popen(git_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).communicate()
if gitbr_err:
print(f"Could not check out source branch {source_branch} {gitbr_err}")
Expand Down

0 comments on commit b998d94

Please sign in to comment.