@matheusbsbs / matheus-bagliano / commits / dc52403696
Fork 0

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>

Simon Hausmann committed May 21, 2007 at 09:34 UTC dc5240369610a6f72eab9b59447889dfd69b31c5
1 file changed +2
contrib/fast-import/git-p4
+2
@@ -55,6 +55,8 @@ def p4Where(depotPath):
55 if not depotPath.endswith("/"):
56 depotPath += "/"
57 output = p4Cmd("where %s..." % depotPath)
58 + if output["code"] == "error":
59 + return ""
60 clientPath = ""
61 if "path" in output:
62 clientPath = output.get("path")