From 9b46527628683523d81d7b11b9872761fa1bad1d Mon Sep 17 00:00:00 2001 From: Aaron Gable Date: Fri, 12 May 2017 10:53:51 -0700 Subject: [PATCH] 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 Commit-Queue: Aaron Gable --- git_cl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git_cl.py b/git_cl.py index 610db53b1..3f1752f01 100755 --- a/git_cl.py +++ b/git_cl.py @@ -860,7 +860,8 @@ class Settings(object): 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):