Skip to content

Commit e9ab25a

Browse files
Added cd /d and git checkout call in git_tasks steps of automatic merge
Co-authored-by: dtmaclaren <[email protected]>
1 parent df7cbf6 commit e9ab25a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

installation_and_upgrade/ibex_install_utils/tasks/git_tasks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ def automatic_merge_of_git_remote(self, branch_to_merge_from, branch_to_merge_to
100100
if self.prompt.confirm_step(automatic_prompt):
101101
try:
102102
try:
103+
subprocess.check_call(f"cd /d {dir}", shell=True)
104+
print(f" cd: {dir}")
105+
print(f" checkout: {repo.git.checkout(f'{branch_to_merge_to}')}")
103106
print(f" fetch: {repo.git.fetch()}")
104107
print(f" merge: {repo.git.merge(f'{branch_to_merge_from}')}")
105108
except git.GitCommandError as e:

installation_and_upgrade/ibex_install_utils/tasks/update_scripts.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,3 @@ def update_scripts(self):
2323
prompt = UserPrompt(True,False)
2424
print(COMPUTERNAME)
2525
UpdateScripts(prompt, "", "", "", "", "").update_scripts()
26-
27-
28-

0 commit comments

Comments
 (0)