summaryrefslogtreecommitdiff
path: root/regenerate_index_html.py
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-12-28 22:36:12 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-12-28 22:36:12 +0100
commit6c5fb9d5544d9acd95cb1dfac573877fb16ec706 (patch)
tree55a499dd9de8348aae18e345eeec8c51922666b2 /regenerate_index_html.py
parent2752cca8017f1e6f80f9d0f11b07e113aafcacfe (diff)
downloadPROJ-data-6c5fb9d5544d9acd95cb1dfac573877fb16ec706.tar.gz
PROJ-data-6c5fb9d5544d9acd95cb1dfac573877fb16ec706.zip
Regenerate index.html
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')