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

feat: overriding default git branch in remote config source #371

Merged

Conversation

natthan-pigoux
Copy link
Contributor

closes #369

Comment on lines 206 to 208
parsed_url = urlparse(str(backend_url))
branch = parse_qs(parsed_url.query).get("branch", [DEFAULT_GIT_BRANCH])[0]
return branch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
parsed_url = urlparse(str(backend_url))
branch = parse_qs(parsed_url.query).get("branch", [DEFAULT_GIT_BRANCH])[0]
return branch
return dict(backend_url.query_params()).get("branch", DEFAULT_GIT_BRANCH)

@chrisburr chrisburr merged commit 2bf4e28 into DIRACGrid:main Jan 15, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support overriding default git branch in remote config source
2 participants