diff options
Diffstat (limited to 'examples/gbp-add-patch')
-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 |