From abba82d46b933252cbc68c7bb2c4247eac0603f0 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Sat, 11 Oct 2008 13:51:21 -0700 Subject: [PATCH] commit: fix the 'stage changed files to commit' logic We were passing in a list of changed files instead of passing the items in as the args to git.add(). We now do the handle this correclty. This also turns on git-add's verbose mode so that better feedback is given. Signed-off-by: David Aguilar --- cola/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cola/models.py b/cola/models.py index de3f6d1e..ad9b2820 100644 --- a/cola/models.py +++ b/cola/models.py @@ -551,7 +551,7 @@ class Model(model.Model): return diff, status, filename def stage_modified(self): - output = self.git.add(self.get_modified()) + output = self.git.add(v=True, *self.get_modified()) self.update_status() return output -- 2.11.4.GIT