summaryrefslogtreecommitdiff
path: root/regenerate_index_html.py
diff options
context:
space:
mode:
Diffstat (limited to 'regenerate_index_html.py')
-rw-r--r--regenerate_index_html.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/regenerate_index_html.py b/regenerate_index_html.py
index 90ce9d0..fc994e3 100644
--- a/regenerate_index_html.py
+++ b/regenerate_index_html.py
@@ -194,6 +194,8 @@ for dirname in sorted(dirnames):
if f.startswith('README'):
last_modified = ''
else:
+ p = subprocess.run(['git','status','--porcelain',full_filename], check=True, stdout=subprocess.PIPE)
+ assert not p.stdout, (p.stdout, f)
p = subprocess.run(['git','log','-1','--pretty=format:%cd','--date=short',full_filename], check=True, stdout=subprocess.PIPE)
last_modified = '. Last modified: ' + p.stdout.decode('ascii')