Hi,
we have some python scripts that are run from Visual Studio, and one of
them fails because of a wrong git return code when calling 'git describe
--dirty'
Here's the issue:
=============
import subprocess
GIT_EXE = "<path to git exe>"
GIT_SRC = "<path to git repo>"
# call 'git describe --dirty':
run_git = subprocess.Popen([GIT_EXE, "describe", "--dirty"],
cwd=GIT_SRC,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
(output, output_err) = run_git.communicate()
print "Returncode: %s" % run_git.returncode
print "Output: %s" % output.strip()
=============
Run from wingw, the return code is 0.
Run from cmd, the return code is 1.
Why?
Thanks,
Manuela
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html