diff foodtruck/views/edit.py @ 598:3cec8634209a

admin: Ability to configure SCM stuff per site.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 22 Jan 2016 11:01:00 -0800
parents d4a01a023998
children c67dcc0fa80f
line wrap: on
line diff
--- a/foodtruck/views/edit.py	Wed Jan 20 21:39:18 2016 -0800
+++ b/foodtruck/views/edit.py	Fri Jan 22 11:01:00 2016 -0800
@@ -39,10 +39,9 @@
                     page.path, site_app.root_dir))
 
         if 'do_save_and_commit' in request.form:
-            author = g.config.get('scm/username')
             message = "Edit %s" % os.path.relpath(
                     page.path, site_app.root_dir)
-            site.scm.commit([page.path], author, message)
+            site.scm.commit([page.path], message)
 
         if 'do_preview' in request.form:
             return _preview_page(page)