aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-10-21 21:20:24 +0200
committerGuido Günther <agx@sigxcpu.org>2011-10-22 15:33:40 +0200
commite7a35319ba55b6cf0b88bc6299a85281de2374c1 (patch)
tree781e9fbcf7dd9b4aaf9014ace0d7adf6050b7f2a /examples
parent6da5985f2eb0f39d97afb271569de102ff472858 (diff)
Replace GitAdd by GitRepository.add_files
Git-Dch: Ignore
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 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