summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlava Shishkin <slavashishkin@gmail.com>2022-04-16 00:05:45 +0300
committerSlava Shishkin <slavashishkin@gmail.com>2022-04-16 00:19:31 +0300
commit85221058291af125df1c8ba3ae00c5676962e5c7 (patch)
tree62bd4fafa60a4844e11281c0318255dade30d242
parent418ce843d4d9bf0935b034a02c27e9158d103224 (diff)
downloadgit-bz-85221058291af125df1c8ba3ae00c5676962e5c7.tar.gz
update get_git_config
-rwxr-xr-xgit-bz4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-bz b/git-bz
index ee332e1..9876ea5 100755
--- a/git-bz
+++ b/git-bz
@@ -348,14 +348,14 @@ def split_local_config(config_text):
def get_git_config(name):
try:
name = name.replace(".", r"\.")
- config_options = git.config(r'bz-tracker\.' + name + r'\..*', get_regexp=True)
+ config_options = git.config(r'bz-tracker\.' + name + r'\..*', get_regexp=True).decode()
except CalledProcessError:
return {}
result = {}
for line in config_options.split("\n"):
line = line.strip()
- m = re.match("(\S+)\s+(.*)", line)
+ m = re.match(r'(\S+)\s+(.*)', line)
key = m.group(1)
value = m.group(2)