174 |
if not os.path.exists(infowebdir): |
if not os.path.exists(infowebdir): |
175 |
os.makedirs(infowebdir) |
os.makedirs(infowebdir) |
176 |
lastupdated = git_multimail.read_git_output( |
lastupdated = git_multimail.read_git_output( |
177 |
['for-each-ref', '--sort=-committerdate', "--format='%(committerdate:iso8601)'", '--count=1', 'refs/heads'], |
['for-each-ref', '--sort=-committerdate', "--format=%(committerdate:iso8601)", '--count=1', 'refs/heads'], |
178 |
) |
) |
179 |
modfile = open(os.path.join(infowebdir, 'last-modified'), 'w') |
modfile = open(os.path.join(infowebdir, 'last-modified'), 'w') |
180 |
modfile.write(lastupdated.strip("'")) |
modfile.write(lastupdated) |
181 |
modfile.close() |
modfile.close() |
182 |
except Exception: |
except Exception: |
183 |
pass |
pass |