From: Evan Broder Date: Mon, 22 Dec 2008 07:19:30 +0000 (-0500) Subject: Use check_call instead of call to make sure things error out. X-Git-Url: http://xvm.mit.edu/gitweb/invirt/scripts/git-migration.git/commitdiff_plain/7851c5304b68a5b2ef3633ca7b263c4f6db9bc08?ds=sidebyside Use check_call instead of call to make sure things error out. svn path=/trunk/scripts/git-migration/; revision=1868 --- diff --git a/git-migrate b/git-migrate index 493f25e..b8d0f0f 100755 --- a/git-migrate +++ b/git-migrate @@ -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):