Skip to content

Commit

Permalink
fixing release script
Browse files Browse the repository at this point in the history
  • Loading branch information
edulix committed May 8, 2023
1 parent 3ecad61 commit 14c012b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,17 +562,12 @@ def apply_base_branch(dir_path, base_branches):
exit(1)

call_process("git clean -f -d", shell=True, cwd=dir_path)
call_process("git checkout", shell=True, cwd=dir_path)
call_process("git reset --hard origin", shell=True, cwd=dir_path)
call_process(f"git checkout {branch_to_fork}", shell=True, cwd=dir_path)
call_process(f"git reset --hard origin/{branch_to_fork}", shell=True, cwd=dir_path)

if final_branch_name != branch_to_fork:
print(f"creating '{final_branch_name}' branch from '{branch_to_fork}' branch")
call_process(f"git checkout {branch_to_fork}", shell=True, cwd=dir_path)
call_process(f"git checkout -b {final_branch_name}", shell=True, cwd=dir_path)
else:
print(f"Checking out '{branch_to_fork}' branch")
call_process(f"git checkout {branch_to_fork}", shell=True, cwd=dir_path)
call_process(f"git reset --hard origin/{branch_to_fork}", shell=True, cwd=dir_path)

def do_commit_push_branch(dir_path, base_branch, version):
print(f"commit and push to base branch='{base_branch}'..")
Expand Down

0 comments on commit 14c012b

Please sign in to comment.