@matheusbsbs / matheus-bagliano / commits / 845b42cb6c
Fork 0

Fix support for "depot-path" in older git-p4 imports

Signed-off-by: Simon Hausmann <shausman@trolltech.com>

Simon Hausmann committed Jun 7, 2007 at 09:19 UTC 845b42cb6c1c1e80c4283234ea2162cae809bd50
1 file changed +4 -1
contrib/fast-import/git-p4
+4 -1
@@ -153,7 +153,10 @@ def extractSettingsGitLog(log):
153
154 values[key] = val
155
156 - values['depot-paths'] = values.get("depot-paths").split(',')
156 + paths = values.get("depot-paths")
157 + if not paths:
158 + paths = values.get("depot-path")
159 + values['depot-paths'] = paths.split(',')
160 return values
161
162 def gitBranchExists(branch):