summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/gbp-add-patch3
1 files changed, 1 insertions, 2 deletions
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