Skip to content

Commit

Permalink
Fixed bug in sh fix for writing out the git commit ID.
Browse files Browse the repository at this point in the history
  • Loading branch information
sit23 committed Oct 18, 2023
1 parent e5c5b20 commit 91f1555
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extra/python/isca/codebase.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ def write_source_control_status(self, outfile):

# write out the git commit id of GFDL_BASE
file.write("\n\n*---commit hash used for code in GFDL_BASE, including this python module---*:\n")
check_for_sh_stdout(file.write(gfdl_git.log('-1', '--format="%H"')))
gfdl_git_out = check_for_sh_stdout(gfdl_git.log('-1', '--format="%H"'))
file.write(gfdl_git_out)

# if there are any uncommited changes in the working directory,
# add those to the file too
Expand Down

0 comments on commit 91f1555

Please sign in to comment.