summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlava Shishkin <slavashishkin@gmail.com>2022-04-16 00:04:45 +0300
committerSlava Shishkin <slavashishkin@gmail.com>2022-04-16 00:19:31 +0300
commit418ce843d4d9bf0935b034a02c27e9158d103224 (patch)
treea0b13c198c7782c3484b53eea5b6c0a642961b15
parentae00f4b6ef0b05bbd40166f57f9c9ffbfe9e4cdf (diff)
downloadgit-bz-418ce843d4d9bf0935b034a02c27e9158d103224.tar.gz
update init_git_config
-rwxr-xr-xgit-bz4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-bz b/git-bz
index 44d2203..ee332e1 100755
--- a/git-bz
+++ b/git-bz
@@ -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)