From e7a35319ba55b6cf0b88bc6299a85281de2374c1 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 21 Oct 2011 21:20:24 +0200 Subject: Replace GitAdd by GitRepository.add_files Git-Dch: Ignore --- examples/gbp-add-patch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/gbp-add-patch b/examples/gbp-add-patch index 357e31c..8a10eb5 100755 --- a/examples/gbp-add-patch +++ b/examples/gbp-add-patch @@ -40,7 +40,6 @@ import subprocess import tempfile from gbp.command_wrappers import (Command, CommandExecFailed, - GitAdd, GitCommand) from gbp.config import (GbpOptionParser, GbpOptionGroup) from gbp.errors import GbpError @@ -144,7 +143,7 @@ def main(argv): patch = PatchInfo(patchfile) - GitAdd()([patchfile]) + repo.add_files(patchfile) msg = build_commit_msg(repo, patch, options) GitCommit()(edit=options.edit, msg=msg) # FIXME: handle the series file -- cgit v1.2.3