Created
February 13, 2015 20:36
-
-
Save dcramer/93a088759f532c3a398f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import subprocess | |
>>> proc = subprocess.Popen(['git', 'clone', '[email protected]:getsentry/sentry.git', '/tmp/ds-repo-1'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) | |
>>> print(proc.communicate()) | |
("Cloning into '/tmp/ds-repo-1'...\n", None) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
raises
CalledProcessError
on non-zero exit code.