Skip to content

Commit 93d7035

Browse files
committed
Old versions (<2.0) of git don't have git remote get-url. This uses
an different way of getting the same information which is hopefully more widely supported.
1 parent b753b42 commit 93d7035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ci_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def patch_repo() -> None:
196196

197197

198198
def update_origin() -> None:
199-
old_url = run('git', 'remote', 'get-url', 'origin')
199+
old_url = run('git', 'config', '--get', 'remote.origin.url')
200200
new_url = old_url.strip().replace(OLD_REPO, NEW_REPO)
201201
if new_url != old_url:
202202
with info('Updating git url to %s' % new_url):

0 commit comments

Comments
 (0)