From: Luke Diamand Date: Fri, 11 May 2012 06:25:18 +0000 (+0100) Subject: git p4: fix bug when enabling tag import/export via config variables X-Git-Tag: v1.7.11-rc0~26^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/06dcd152a81ccff5464c34ed95306196763c9e65?ds=inline;hp=--cc 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 Acked-by: Pete Wyckoff Signed-off-by: Junio C Hamano --- 06dcd152a81ccff5464c34ed95306196763c9e65 diff --git a/git-p4.py b/git-p4.py index 1335e0b890..78ec9f8fb8 100755 --- a/git-p4.py +++ b/git-p4.py @@ -1400,7 +1400,7 @@ def run(self, args): 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 @@ def run(self, args): sys.stdout.write("\n") if gitConfig("git-p4.importLabels", "--bool") == "true": - self.importLabels = true + self.importLabels = True if self.importLabels: p4Labels = getP4Labels(self.depotPaths)