Use check_call instead of call to make sure things error out.
authorEvan Broder <broder@mit.edu>
Mon, 22 Dec 2008 07:19:30 +0000 (02:19 -0500)
committerEvan Broder <broder@mit.edu>
Mon, 22 Dec 2008 07:19:30 +0000 (02:19 -0500)
svn path=/trunk/scripts/git-migration/; revision=1868

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.
 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):
                     stdout=subprocess.PIPE)
 
 def cloneAllPackages(base):