Fix depot-path determination for git-p4 submit

Signed-off-by: Simon Hausmann <shausman@trolltech.com>
maint
Simon Hausmann 2007-06-07 13:10:20 +02:00
parent b0d10df77a
commit a52d5c7bc0
1 changed files with 1 additions and 1 deletions

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"