summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-06-27 08:36:29 +0300
committerGuido Günther <agx@sigxcpu.org>2015-02-25 16:15:09 +0100
commite4f767f7c9a2c4a2f01d0345820bf7b500a1f834 (patch)
tree89b43cd9966da93fc8b22e85d6ec32e9d9bad3ec /tests
parent31663c8b440540127936fa57334f5f35153bb7f6 (diff)
GitRepository/has_submodules: add treeish argument
For defining a Git treeish which to look into, instead of the current working copy. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/04_test_submodules.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/04_test_submodules.py b/tests/04_test_submodules.py
index a18f8b5..deb389d 100644
--- a/tests/04_test_submodules.py
+++ b/tests/04_test_submodules.py
@@ -87,6 +87,8 @@ def test_add_submodule():
def test_has_submodules():
"""Check for submodules"""
ok_(REPO.has_submodules())
+ ok_(REPO.has_submodules('HEAD'))
+ ok_(not REPO.has_submodules('HEAD^'))
def test_get_submodules():