Fix depot-path determination for git-p4 submit

This commit is contained in:
Simon Hausmann
2007-06-07 13:10:20 +02:00
parent a72cdbe18d
commit 6ce8e50925

2
git-p4
View File

@@ -494,7 +494,7 @@ class P4Submit(Command):
settings = extractSettingsGitLog(extractLogMessageFromGitCommit("p4"))
if len(depotPath) == 0 and gitBranchExists("origin"):
settings = extractSettingsGitLog(extractLogMessageFromGitCommit("origin"))
depotPaths = settings['depot-paths']
depotPath = settings['depot-paths'][0]
if len(depotPath) == 0:
print "Internal error: cannot locate perforce depot path from existing branches"