Skip to content

Commit

Permalink
Succeed even if git returns no substitutions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 31, 2024
1 parent 5e630af commit 9e2ac10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jaraco/develop/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions newsfragments/+a8597e5f.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Succeed even if git returns no substitutions.

0 comments on commit 9e2ac10

Please sign in to comment.