diff options
author | Slava Shishkin <slavashishkin@gmail.com> | 2022-04-16 00:04:45 +0300 |
---|---|---|
committer | Slava Shishkin <slavashishkin@gmail.com> | 2022-04-16 00:19:31 +0300 |
commit | 418ce843d4d9bf0935b034a02c27e9158d103224 (patch) | |
tree | a0b13c198c7782c3484b53eea5b6c0a642961b15 | |
parent | ae00f4b6ef0b05bbd40166f57f9c9ffbfe9e4cdf (diff) | |
download | git-bz-418ce843d4d9bf0935b034a02c27e9158d103224.tar.gz |
update init_git_config
-rwxr-xr-x | git-bz | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -277,13 +277,13 @@ def commit_is_merge(commit): def init_git_config(): try: - config_options = git.config(r'^bz\.', get_regexp=True) + config_options = git.config(r'^bz\.', get_regexp=True).decode() except CalledProcessError: return for line in config_options.split("\n"): line = line.strip() - m = re.match("bz.(\S+)\s+(.*)", line) + m = re.match(r'bz.(\S+)\s+(.*)', line) name = m.group(1) value = m.group(2) |