GitRepository.add_files: consistently update ALL tracked files
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Sep 2013 13:09:11 +0000 (16:09 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 14 Nov 2014 12:22:07 +0000 (14:22 +0200)
Use the --all option of git-add so that all tracked files are updated in
all conditions. Previously deletion of tracked files was not staged, for
example.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/git/repository.py

index e54d2d7..2b2c37d 100644 (file)
@@ -1338,6 +1338,7 @@ class GitRepository(object):
 
         args = GitArgs()
         args.add_true(force, '-f')
+        args.add('-A')
         args.add(paths)
 
         if index_file: