Skip to content

Commit

Permalink
Add support for installing script from any branch
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Dec 9, 2024
1 parent 60d5b86 commit a3ff17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maintenance/install_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def expand_url(url):
if uri.scheme == "github":
path = pathlib.Path(uri.path[1:])
repo = f"{uri.netloc}/{path.parts[0]}"
branch = get_main_branch(repo)
branch = dict(urllib.parse.parse_qsl(uri.query)).get("branch", get_main_branch(repo))
return (
f"https://raw.githubusercontent.com/{repo}/{branch}"
f"/{'/'.join(path.parts[1:])}"
Expand Down

0 comments on commit a3ff17d

Please sign in to comment.