add -a git commit to catch deleted files in debug
authorJohannes Berg <johannes@sipsolutions.net>
Sun, 31 Mar 2013 00:46:41 +0000 (01:46 +0100)
committerJohannes Berg <johannes@sipsolutions.net>
Sun, 31 Mar 2013 00:46:41 +0000 (01:46 +0100)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
lib/git.py

index 38411e39993f8f094c84acd3119b7ef58c73eb26..50179b5d5a493d420a9b148b689d39557df4e19e 100644 (file)
@@ -55,7 +55,7 @@ def add(path, tree=None):
 
 def commit_all(message, tree=None):
     add('.', tree=tree)
-    process = subprocess.Popen(['git', 'commit', '--allow-empty', '-m', message],
+    process = subprocess.Popen(['git', 'commit', '--allow-empty', '-a', '-m', message],
                                stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
                                close_fds=True, universal_newlines=True, cwd=tree)
     stdout = process.communicate()[0]