aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
Diffstat (limited to 'libbe')
-rw-r--r--libbe/storage/vcs/git.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbe/storage/vcs/git.py b/libbe/storage/vcs/git.py
index 0a19f2f..20dff39 100644
--- a/libbe/storage/vcs/git.py
+++ b/libbe/storage/vcs/git.py
@@ -35,6 +35,11 @@ try:
except ImportError, error:
_pygit2 = None
_pygit2_import_error = error
+else:
+ if not hasattr(_pygit2, '__version__'):
+ _pygit2 = None
+ _pygit2_import_error = NotImplementedError(
+ 'pygit2 <= 0.17.2 not supported')
import libbe
from ...ui.util import user as _user