git p4: fix bug when enabling tag import/export via config variables
Use Python's True, not true. Causes failure when enabling tag import or export in "git p4" using a config option rather than the command line. Signed-off-by: Luke Diamand <luke@diamand.org> Acked-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
05a3cec501
commit
06dcd152a8
@ -1400,7 +1400,7 @@ class P4Submit(Command, P4UserMap):
|
|||||||
rebase.rebase()
|
rebase.rebase()
|
||||||
|
|
||||||
if gitConfig("git-p4.exportLabels", "--bool") == "true":
|
if gitConfig("git-p4.exportLabels", "--bool") == "true":
|
||||||
self.exportLabels = true
|
self.exportLabels = True
|
||||||
|
|
||||||
if self.exportLabels:
|
if self.exportLabels:
|
||||||
p4Labels = getP4Labels(self.depotPath)
|
p4Labels = getP4Labels(self.depotPath)
|
||||||
@ -2675,7 +2675,7 @@ class P4Sync(Command, P4UserMap):
|
|||||||
sys.stdout.write("\n")
|
sys.stdout.write("\n")
|
||||||
|
|
||||||
if gitConfig("git-p4.importLabels", "--bool") == "true":
|
if gitConfig("git-p4.importLabels", "--bool") == "true":
|
||||||
self.importLabels = true
|
self.importLabels = True
|
||||||
|
|
||||||
if self.importLabels:
|
if self.importLabels:
|
||||||
p4Labels = getP4Labels(self.depotPaths)
|
p4Labels = getP4Labels(self.depotPaths)
|
||||||
|
Loading…
Reference in New Issue
Block a user