git-cl: let 'git config gerrit.host false' work
R=tandrii@chromium.org
Change-Id: I2c669303d2320d672538b363fbb15fb9e5cf37a8
Reviewed-on: https://chromium-review.googlesource.com/505267
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
Commit-Queue: Aaron Gable <agable@chromium.org>
diff --git a/git_cl.py b/git_cl.py
index 610db53..3f1752f 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -860,7 +860,8 @@
def GetIsGerrit(self):
"""Return true if this repo is assosiated with gerrit code review system."""
if self.is_gerrit is None:
- self.is_gerrit = self._GetConfig('gerrit.host', error_ok=True)
+ self.is_gerrit = (
+ self._GetConfig('gerrit.host', error_ok=True).lower() == 'true')
return self.is_gerrit
def GetSquashGerritUploads(self):