Fix error detection with git-p4 submit when the requested depot path is not in the client view.
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
This commit is contained in:
parent
33be3e6550
commit
dc52403696
@ -55,6 +55,8 @@ def p4Where(depotPath):
|
|||||||
if not depotPath.endswith("/"):
|
if not depotPath.endswith("/"):
|
||||||
depotPath += "/"
|
depotPath += "/"
|
||||||
output = p4Cmd("where %s..." % depotPath)
|
output = p4Cmd("where %s..." % depotPath)
|
||||||
|
if output["code"] == "error":
|
||||||
|
return ""
|
||||||
clientPath = ""
|
clientPath = ""
|
||||||
if "path" in output:
|
if "path" in output:
|
||||||
clientPath = output.get("path")
|
clientPath = output.get("path")
|
||||||
|
Loading…
Reference in New Issue
Block a user