Commit 9b465276 authored by Aaron Gable's avatar Aaron Gable Committed by Commit Bot

git-cl: let 'git config gerrit.host false' work

R=tandrii@chromium.org

Change-Id: I2c669303d2320d672538b363fbb15fb9e5cf37a8
Reviewed-on: https://chromium-review.googlesource.com/505267Reviewed-by: 's avatarAndrii Shyshkalov <tandrii@chromium.org>
Commit-Queue: Aaron Gable <agable@chromium.org>
parent 9fe907de
...@@ -860,7 +860,8 @@ class Settings(object): ...@@ -860,7 +860,8 @@ class Settings(object):
def GetIsGerrit(self): def GetIsGerrit(self):
"""Return true if this repo is assosiated with gerrit code review system.""" """Return true if this repo is assosiated with gerrit code review system."""
if self.is_gerrit is None: 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 return self.is_gerrit
def GetSquashGerritUploads(self): def GetSquashGerritUploads(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment