Fix error detection with git-p4 submit when the requested depot path is not in the client view.

This commit is contained in:
Simon Hausmann
2007-05-21 09:34:56 +02:00
parent 0fc5907e67
commit 034f696523

2
git-p4
View File

@@ -55,6 +55,8 @@ def p4Where(depotPath):
if not depotPath.endswith("/"):
depotPath += "/"
output = p4Cmd("where %s..." % depotPath)
if output["code"] == "error":
return ""
clientPath = ""
if "path" in output:
clientPath = output.get("path")