Skip to content

Commit

Permalink
order change
Browse files Browse the repository at this point in the history
  • Loading branch information
kiihne-noaa authored Nov 14, 2024
1 parent 744c3a5 commit 0de08a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fre/pp/checkoutScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _checkoutTemplate(experiment, platform, target, branch=None):
default_tag = subprocess.run(["fre","--version"],capture_output=True, text=True).stdout.split()[2]
if default_tag == '2024.1': #hard coded solution to current discrepencies with fre --version
default_tag = '2024.01'
print('the default tag for directory ',directory,'/',name, ' is ', default_tag)
if branch is not None:
if os.path.isdir(name): #scenario 4
os.chdir(name)
Expand All @@ -56,7 +56,7 @@ def _checkoutTemplate(experiment, platform, target, branch=None):
clone_output = subprocess.run(['git', 'clone', f'--branch={branch}', '--recursive', 'https://github.com/NOAA-GFDL/fre-workflows.git', f'{name}'], capture_output=True, text=True)
print('output of fre pp checkouts git clone command is as follows:',clone_output)
else:
print('the default tag for directory ',directory,'/',name, ' is ', default_tag)


if os.path.isdir(name): #scenario 3
os.chdir(name)
Expand Down

0 comments on commit 0de08a8

Please sign in to comment.