Comments
Patch
@@ -1,5 +1,4 @@
-This test requires pygit2:
- > $PYTHON -c 'import pygit2' || exit 80
+#require pygit2
Setup:
> GIT_AUTHOR_NAME='test'; export GIT_AUTHOR_NAME
@@ -381,6 +381,17 @@
return (int(m.group(1)), int(m.group(2)))
+@check("pygit2", "pygit2 Python library")
+def has_git():
+ try:
+ import pygit2
+
+ pygit2.Oid # silence unused import
+ return True
+ except ImportError:
+ return False
+
+
# https://github.com/git-lfs/lfs-test-server
@check("lfs-test-server", "git-lfs test server")
def has_lfsserver():