git-remote-testgit: fix error handling
[gitweb.git] / git_remote_helpers / git / importer.py
index 70a712729b63047b9760b72d3e2b0a45ff176646..02a719ac026864875a13ce48462a73acd90cea40 100644 (file)
@@ -1,6 +1,8 @@
 import os
 import subprocess
 
+from git_remote_helpers.util import check_call
+
 
 class GitImporter(object):
     """An importer for testgit repositories.
@@ -35,6 +37,4 @@ def do_import(self, base):
         if os.path.exists(path):
             args.append("--import-marks=" + path)
 
-        child = subprocess.Popen(args)
-        if child.wait() != 0:
-            raise CalledProcessError
+        check_call(args)