Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always get requirements from master while installing from a fork but not from a different repository #9039

Merged
merged 2 commits into from
Sep 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,13 @@ def get_requirements_branch(version, inst, repository):
"""
Convert "version" into a branch name
"""
if repository != 'gem/oq-engine':
repository_owner, repository_name = repository.split('/')
# in forks of oq-engine, always read requirements from master
if repository_owner != 'gem' and repository_name == 'oq-engine':
return 'master'
# in cases such as 'install.py user', for instance while running tests from
# another gem repository, we need requirements to be read from the latest
# stable version unless differently specified.
if version is None:
if (inst is devel or inst is devel_server):
return 'master'
Expand Down
Loading