aboutsummaryrefslogtreecommitdiffstats
path: root/git_deps
diff options
context:
space:
mode:
Diffstat (limited to 'git_deps')
-rw-r--r--git_deps/gitutils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/git_deps/gitutils.py b/git_deps/gitutils.py
index f699551..47355d2 100644
--- a/git_deps/gitutils.py
+++ b/git_deps/gitutils.py
@@ -55,7 +55,11 @@ class GitUtils(object):
@classmethod
def oneline(cls, commit):
- return commit.message.split('\n', 1)[0]
+ try:
+ ret = commit.message.split('\n', 1)[0]
+ except UnicodeDecodeError:
+ ret = "Invalid utf-8 commit message"
+ return ret
@classmethod
def commit_summary(cls, commit):