diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-10-21 21:20:24 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-10-22 15:33:40 +0200 |
commit | e7a35319ba55b6cf0b88bc6299a85281de2374c1 (patch) | |
tree | 781e9fbcf7dd9b4aaf9014ace0d7adf6050b7f2a /examples | |
parent | 6da5985f2eb0f39d97afb271569de102ff472858 (diff) | |
download | git-buildpackage-e7a35319ba55b6cf0b88bc6299a85281de2374c1.tar.gz git-buildpackage-e7a35319ba55b6cf0b88bc6299a85281de2374c1.tar.bz2 git-buildpackage-e7a35319ba55b6cf0b88bc6299a85281de2374c1.zip |
Replace GitAdd by GitRepository.add_files
Git-Dch: Ignore
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/gbp-add-patch | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/gbp-add-patch b/examples/gbp-add-patch index 357e31cf..8a10eb5d 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 |