Last active
December 25, 2015 21:49
-
-
Save dhrrgn/7045696 to your computer and use it in GitHub Desktop.
Why am I not getting the full git clone output here?
This file contains 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
# assume all imports are done | |
#Old: proc = subprocess.Popen(['git', 'clone', '[url here]'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |
# Fixed | |
proc = subprocess.Popen(['git', 'clone', '--progress' '[url here]'], | |
stdout=subprocess.PIPE, | |
stderr=subprocess.STDOUT) | |
while proc.poll() is None: | |
out = proc.stdout.readline() | |
print out |
This file contains 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
Works as expected |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment