commit | cf6df902d647dcb8f2de2b7f1b9ca8ed35658ce7 | [log] [tgz] |
---|---|---|
author | Dan Beam <dbeam@chromium.org> | Thu Nov 08 01:48:37 2018 +0000 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 08 01:48:37 2018 +0000 |
tree | 1246145e932aedebbe8307a0dc5c5803ccb39256 | |
parent | 75fa8552337b65e1de9f54351573f5a22d6c14e0 [diff] [blame] |
git cl status: Force description encoding to utf-8 to avoid throwing Example error: https://gist.github.com/danbeam/3c6b1f98b5d4a921a583a6f070ed0bf0 R=dpranke@chromium.org BUG=none Change-Id: Ib3406ce04782b08b1761506b494b96a827fa4a84 Reviewed-on: https://chromium-review.googlesource.com/c/1299615 Commit-Queue: Dan Beam <dbeam@chromium.org> Reviewed-by: Dirk Pranke <dpranke@chromium.org>
diff --git a/git_cl.py b/git_cl.py index 14c4cd6..9246511 100755 --- a/git_cl.py +++ b/git_cl.py
@@ -2385,7 +2385,8 @@ data = self._GetChangeDetail(['CURRENT_REVISION', 'CURRENT_COMMIT'], no_cache=force) current_rev = data['current_revision'] - return data['revisions'][current_rev]['commit']['message'] + return data['revisions'][current_rev]['commit']['message'].encode( + 'utf-8', 'ignore') def UpdateDescriptionRemote(self, description, force=False): if gerrit_util.HasPendingChangeEdit(