1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-21 11:36:08 +02:00

Fix depot-path determination for git-p4 submit

Signed-off-by: Simon Hausmann <shausman@trolltech.com>
This commit is contained in:
Simon Hausmann 2007-06-07 13:10:20 +02:00
parent b0d10df77a
commit a52d5c7bc0

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"