Add --allow-empty to git commit command line
authorKeith Packard <keithp@keithp.com>
Thu, 19 Dec 2013 21:54:56 +0000 (13:54 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 20 Dec 2013 18:55:57 +0000 (10:55 -0800)
This avoids exceptions when the commit doesn't do anything and is
otherwise fine.

Signed-off-by: Keith Packard <keithp@keithp.com>
calypso/webdav.py

index eaf3305cfe10dc9724fe285b7b19c6f7b62e8721..6334d014bca419e0acb1c05009c466d980d0e921 100644 (file)
@@ -317,7 +317,7 @@ class Collection(object):
         return True
 
     def git_commit(self, context):
-        args = ["git", "commit"]
+        args = ["git", "commit", "--allow-empty"]
         env = {}
 
         message = context.get('action', 'other action')