python - Because I have data in the output of standard error with some git commands? -


if ret 0, because have data on standard error output (stderr)?

#!/usr/bin/env python  subprocess import call  f = open('/tmp/err.log','wb') ret = call[(['git', 'checkout', 'master'], stderr=f) if ret == 0: print 'success!' 

this occurs in git commands. in example in master branch.

i having trouble grasping question think asking

"if return code of 0 why have data in stderror" edit question not sure.

the answer think question is: stderror not mean there error in command.

for example, fetching --progress flag git send output stderror

https://www.kernel.org/pub/software/scm/git/docs/git-fetch.html


Comments

Popular posts from this blog

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

php - Return Last Insert ID with PDO -