Use check_call instead of call to make sure things error out.
[invirt/scripts/git-migration.git] / git-migrate
index 493f25e..b8d0f0f 100755 (executable)
@@ -6,7 +6,7 @@ import subprocess
 def clonePackage(base, pkg):
     # Use --no-follow-parent because we're going to handle that with
     # grafts.
-    subprocess.call(['git', 'svn', 'clone', '--no-follow-parent', '%s/packages/%s' % (base, pkg)],
+    subprocess.check_call(['git', 'svn', 'clone', '--no-follow-parent', '%s/packages/%s' % (base, pkg)],
                     stdout=subprocess.PIPE)
 
 def cloneAllPackages(base):