Skip to content

Commit fc835dd

Browse files
authored
Merge pull request #15513 from mcgratta/master
FDS Validation Guide: Fix git stats script
2 parents 0ca9afb + 0b6f060 commit fc835dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Utilities/Python/scripts/validation_git_stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def MAKEGITENTRY(case_name):
3636
# Get git date
3737
gitdate = ''
3838
try:
39-
result = subprocess.run( ['git show -s --format=%aD', gitrevshort], capture_output=True, text=True)
39+
result = subprocess.run( ['git', 'show', '-s', '--format=%aD', gitrevshort], capture_output=True, text=True)
4040
if result.returncode == 0 and result.stdout.strip():
4141
date_parts = result.stdout.strip().split()
4242
if len(date_parts) >= 5:
4343
gitdate = f"{date_parts[2]} {date_parts[1]}, {date_parts[3]}"
4444
except Exception:
45-
gitdate = ''
45+
gitdate = 'Unknown'
4646

4747
# Escape underscores for LaTeX
4848
dir_escaped = case_name.replace('_', '\\_')

0 commit comments

Comments
 (0)