diff --git a/jaraco/develop/git.py b/jaraco/develop/git.py index 7703afb..b4308bd 100644 --- a/jaraco/develop/git.py +++ b/jaraco/develop/git.py @@ -67,7 +67,9 @@ def apply(self, url): @functools.lru_cache() def load(cls): cmd = ['git', 'config', '--get-regexp', r'url\..*\.insteadof'] - lines = subprocess.check_output(cmd, text=True, encoding='utf-8') + lines = subprocess.run( + cmd, capture_output=True, text=True, encoding='utf-8' + ).stdout return set(map(cls.parse, lines.splitlines())) @classmethod diff --git a/newsfragments/+a8597e5f.bugfix.rst b/newsfragments/+a8597e5f.bugfix.rst new file mode 100644 index 0000000..81d384f --- /dev/null +++ b/newsfragments/+a8597e5f.bugfix.rst @@ -0,0 +1 @@ +Succeed even if git returns no substitutions. \ No newline at end of file