diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-05-30 09:06:59 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-07-24 21:47:30 +0200 |
commit | 21ac2d83151cd41659af5acf7bcfb130348bcd45 (patch) | |
tree | 0dfea10bbd3743597bc48da1219a6b9c1663b652 /tests/test_GitRepository.py | |
parent | ba55f9e1c409aa5b3d7600ed60294fe461d26e78 (diff) |
GitRepository: option to ignore untracked in is_clean()
Add an option to ignore untracked files when checking if the repository
is clean.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests/test_GitRepository.py')
-rw-r--r-- | tests/test_GitRepository.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index ff0a5d4..fe59cdf 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -79,6 +79,8 @@ def test_add_files(): os.path.join(repo.path, "testfile")) >>> repo.is_clean()[0] False + >>> repo.is_clean(ignore_untracked=True)[0] + True >>> repo.add_files(repo.path, force=True) >>> repo.commit_all(msg="foo") >>> repo.is_clean()[0] |