Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into summer_update
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddieAkeroyd committed Aug 29, 2024
2 parents 3974c6a + 57bfd48 commit d578931
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions installation_and_upgrade/ibex_install_utils/tasks/git_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

class GitTasks(BaseTasks):
@task(f"Show Git status in {EPICS_PATH}")
def show_git_status(self):
def show_git_status(self) -> None:
subprocess.call(f"cd /d {EPICS_PATH} && git status", shell=True)

@task("Swap instrument git branch to release on CONTROL-SVCS")
def checkout_to_release_branch(self):
def checkout_to_release_branch(self) -> None:
version_pattern = r"^\d+\.\d+\.\d+$"
if self._server_source_dir.endswith("32"):
remote_repo = "EPICS32.git"
Expand Down Expand Up @@ -61,11 +61,3 @@ def checkout_to_release_branch(self):
except subprocess.CalledProcessError as e:
print(f"Error checking out to new release branch and push: {e}")
print("Branch may previously exist either locally or remotely - intervention required")


# something for the future in case creting new beranch fails - maybe one exists we want to use?
# try:
# subprocess.check_call(f"cd /d {EPICS_PATH} && git checkout %COMPUTERNAME%", shell=True)
# print("Switched to existing release branch")
# except subprocess.CalledProcessError as e:
# print(f"Error switching to existing release branch and push: {e}")

0 comments on commit d578931

Please sign in to comment.