summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-01-24 12:24:08 +0200
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-01-24 12:30:27 +0200
commitdca411889abab3374ee32a827fb932a6d323802e (patch)
treee6f4bf7ee965da419a812acb3b4dc89f2d813632 /tests
parent5ae4a2b184fb9a5a5d6b770fe02db7baae1acef6 (diff)
downloadgit-buildpackage-dca411889abab3374ee32a827fb932a6d323802e.tar.gz
git-buildpackage-dca411889abab3374ee32a827fb932a6d323802e.tar.bz2
git-buildpackage-dca411889abab3374ee32a827fb932a6d323802e.zip
tests: minor fix to GitRepository tests
Some newer Git versions do not allow 'git-add' of seemingly empty directories. That is, directories with no files or only ignored files. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_GitRepository.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py
index 480f0c3b..e44b60b7 100644
--- a/tests/test_GitRepository.py
+++ b/tests/test_GitRepository.py
@@ -81,7 +81,7 @@ def test_add_files():
False
>>> repo.is_clean(ignore_untracked=True)[0]
True
- >>> repo.add_files(repo.path, force=True, untracked=False)
+ >>> repo.add_files('testfile', force=True, untracked=False)
>>> repo.status().items()
[('??', ['testfile'])]
>>> repo.add_files(repo.path, force=True)