1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-21 11:36:08 +02:00

Don't make len(p4Cmd("p4 changes -m 1 //foo/...")) == 0 succeed when the p4 command itself failed.

When the p4 command failed write out the exit code in the returned dict.

Signed-off-by: Simon Hausmann <shausman@trolltech.com>
This commit is contained in:
Simon Hausmann 2007-05-23 23:27:31 +02:00
parent 0c66a78393
commit a6d5da36af

View File

@ -31,7 +31,9 @@ def p4CmdList(cmd):
result.append(entry)
except EOFError:
pass
pipe.close()
exitCode = pipe.close()
if exitCode != None:
result["p4ExitCode"] = exitCode
return result