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 /tests | |
parent | 6da5985f2eb0f39d97afb271569de102ff472858 (diff) |
Replace GitAdd by GitRepository.add_files
Git-Dch: Ignore
Diffstat (limited to 'tests')
-rw-r--r-- | tests/03_test_gbp_branch.py | 2 | ||||
-rw-r--r-- | tests/04_test_gbp_submodules.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/03_test_gbp_branch.py b/tests/03_test_gbp_branch.py index a3056975..a99391d0 100644 --- a/tests/03_test_gbp_branch.py +++ b/tests/03_test_gbp_branch.py @@ -39,7 +39,7 @@ def test_is_empty(): def test_add_files(): """Add some dummy data""" shutil.copy(".git/HEAD", "testfile") - gbp.command_wrappers.GitAdd()(['-f', '.']) + repo.add_files('.', force=True) gbp.command_wrappers.GitCommand("commit", ["-mfoo", "-a"])() assert True diff --git a/tests/04_test_gbp_submodules.py b/tests/04_test_gbp_submodules.py index af44c07a..a6b66bb6 100644 --- a/tests/04_test_gbp_submodules.py +++ b/tests/04_test_gbp_submodules.py @@ -55,7 +55,7 @@ def test_empty_has_submodules(): def _add_dummy_data(msg): shutil.copy(".git/HEAD", testfile_name) - gbp.command_wrappers.GitAdd()(['-f', '.']) + repo.add_files('.', force=True) gbp.command_wrappers.GitCommand("commit", ["-m%s" % msg, "-a"])() |