/[adm]/puppet/deployment/mgagit/templates/git-post-receive-hook
ViewVC logotype

Diff of /puppet/deployment/mgagit/templates/git-post-receive-hook

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3389 by colin, Sat Jan 4 14:54:24 2014 UTC revision 3408 by colin, Sun Feb 9 13:56:44 2014 UTC
# Line 174  if __name__ == '__main__': Line 174  if __name__ == '__main__':
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

Legend:
Removed from v.3389  
changed lines
  Added in v.3408

  ViewVC Help
Powered by ViewVC 1.1.30