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

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -