Skip to content

Commit

Permalink
Merge pull request #266 from kiwix/install_from_branch
Browse files Browse the repository at this point in the history
Add support for installing script from any branch
  • Loading branch information
benoit74 authored Dec 9, 2024
2 parents 60d5b86 + a3ff17d commit 038d080
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 038d080

Please sign in to comment.