diff options
author | Dominic <yobmod@gmail.com> | 2021-09-09 19:49:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-09 19:49:13 +0100 |
commit | cfcae1d839c5dbb94745c504993c9d5baebc44b5 (patch) | |
tree | 2227e4e6931ad38e1a3c5a2c48cecbf5d57e5f01 /git/objects/commit.py | |
parent | 5da76e8b4466459a3b6a400c4750a622879acce8 (diff) | |
parent | bb9b50ff2671cda598ff19653d3de49e03b6d163 (diff) | |
download | gitpython-cfcae1d839c5dbb94745c504993c9d5baebc44b5.tar.gz |
Merge pull request #1318 from Yobmod/main
General fixes for next release
Diffstat (limited to 'git/objects/commit.py')
-rw-r--r-- | git/objects/commit.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py index b689167f..b36cd46d 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -446,6 +446,8 @@ class Commit(base.Object, TraversableIterableObj, Diffable, Serializable): # assume utf8 encoding enc_section, enc_option = cls.conf_encoding.split('.') conf_encoding = cr.get_value(enc_section, enc_option, cls.default_encoding) + if not isinstance(conf_encoding, str): + raise TypeError("conf_encoding could not be coerced to str") # if the tree is no object, make sure we create one - otherwise # the created commit object is invalid |