]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git p4: fix bug when enabling tag import/export via config variables
authorLuke Diamand <luke@diamand.org>
Fri, 11 May 2012 06:25:18 +0000 (07:25 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 May 2012 21:21:39 +0000 (14:21 -0700)
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>
git-p4.py

index 1335e0b890ada08a5b0e8c450223940aa8f335d2..78ec9f8fb8a462027f25ae8e15e7a38543c79ef4 100755 (executable)
--- a/git-p4.py
+++ b/git-p4.py
@@ -1400,7 +1400,7 @@ class P4Submit(Command, P4UserMap):
             rebase.rebase()
 
         if gitConfig("git-p4.exportLabels", "--bool") == "true":
-            self.exportLabels = true
+            self.exportLabels = True
 
         if self.exportLabels:
             p4Labels = getP4Labels(self.depotPath)
@@ -2675,7 +2675,7 @@ class P4Sync(Command, P4UserMap):
                         sys.stdout.write("\n")
 
         if gitConfig("git-p4.importLabels", "--bool") == "true":
-            self.importLabels = true
+            self.importLabels = True
 
         if self.importLabels:
             p4Labels = getP4Labels(self.depotPaths)