diff options
author | Slava Shishkin <slavashishkin@gmail.com> | 2022-04-16 00:05:45 +0300 |
---|---|---|
committer | Slava Shishkin <slavashishkin@gmail.com> | 2022-04-16 00:19:31 +0300 |
commit | 85221058291af125df1c8ba3ae00c5676962e5c7 (patch) | |
tree | 62bd4fafa60a4844e11281c0318255dade30d242 | |
parent | 418ce843d4d9bf0935b034a02c27e9158d103224 (diff) | |
download | git-bz-85221058291af125df1c8ba3ae00c5676962e5c7.tar.gz |
update get_git_config
-rwxr-xr-x | git-bz | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |