aboutsummaryrefslogtreecommitdiff
path: root/contrib/fast-import
diff options
context:
space:
mode:
authorSimon Hausmann <shausman@trolltech.com>2007-05-21 09:34:56 +0200
committerSimon Hausmann <shausman@trolltech.com>2007-05-21 09:34:56 +0200
commitdc5240369610a6f72eab9b59447889dfd69b31c5 (patch)
tree025cbbc6a142654bbee5c762216308a357dcdc03 /contrib/fast-import
parent33be3e6550c7051c3ac4bc624c7dacfad6974b4f (diff)
downloadgit-dc5240369610a6f72eab9b59447889dfd69b31c5.tar.gz
git-dc5240369610a6f72eab9b59447889dfd69b31c5.tar.xz
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>
Diffstat (limited to 'contrib/fast-import')
-rwxr-xr-xcontrib/fast-import/git-p42
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index 7489c9108..73da5d2b2 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/git-p4
@@ -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")