hgext/convert/git.py
changeset 5497 f0a3918abd42
parent 5404 67d3daa8ac42
child 5498 4d38e6970b8c
--- a/hgext/convert/git.py	Sun Oct 28 09:47:54 2007 +0100
+++ b/hgext/convert/git.py	Tue Oct 30 22:14:15 2007 +0100
@@ -3,7 +3,7 @@
 import os
 from mercurial import util
 
-from common import NoRepo, commit, converter_source
+from common import NoRepo, commit, converter_source, checktool
 
 class convert_git(converter_source):
     # Windows does not support GIT_DIR= construct while other systems
@@ -31,6 +31,9 @@
             path += "/.git"
         if not os.path.exists(path + "/objects"):
             raise NoRepo("couldn't open GIT repo %s" % path)
+
+        checktool('git-rev-parse', 'git')
+
         self.path = path
 
     def getheads(self):