Skip to content

Commit

Permalink
git fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Avery Kiihne authored and Avery Kiihne committed Nov 6, 2024
1 parent 438492c commit 64d5cc8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions fre/pp/checkoutScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#############################################

def _checkoutTemplate(experiment, platform, target, branch='main'):
def _checkoutTemplate(experiment, platform, target):
"""
Checkout the workflow template files from the repo
"""
Expand Down Expand Up @@ -53,10 +53,7 @@ def _checkoutTemplate(experiment, platform, target, branch='main'):
cloneproc = subprocess.run(clonecmd, shell=True, check=False, stdout=PIPE, stderr=STDOUT)

if branch == 'main':
local_version = subprocess.run(['fre' ,'--version'])
if local_version != '2024.01':
subprocess.run(['git' ,'checkout' ,'tags/2024.01'])

subprocess.run('git checkout tags/2024.01')
if not cloneproc.returncode == 0:
if re.search(preexist_error.encode('ASCII'),cloneproc.stdout) is not None:
argstring = f" -e {experiment} -p {platform} -t {target}"
Expand Down

0 comments on commit 64d5cc8

Please sign in to comment.