Import on galaxy uses master branch by default
See original GitHub issueBug Report
SUMMARY
Everytime I am doing import on the role ansible-network/network-engine, it is failing with the following the error. Looks like galaxy is trying to clone the branch master, but we do not have a master branch on the repo.
STEPS TO REPRODUCE
https://galaxy.ansible.com/ansible-network/network-engine
EXPECTED RESULTS
Should import successfully
ACTUAL RESULTS
INFO Starting import: task_id=261218, repository=ansible-network/network-engine
Task "261218" failed: Command '['git', 'clone', '--quiet', '--depth', '1', '--branch', u'master', 'https://github.com/ansible-network/network-engine.git', '/var/lib/galaxy/downloads/tmpjmPvb3']' returned non-zero exit status 128
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Galaxy User Guide
Defaults to the branch set as a default in the repository, otherwise defaults to the master. name: Download the role to a specific...
Read more >Branches
Master is the default branch for GOG GALAXY used whenever a user initializes an installation in the client (the GOG GALAXY application). Beta...
Read more >Can I change the default git branch in Android Studio?
I go to VCS > Import into Version Control > Share Project on Github, and it creates a repo with default settings, 'master'...
Read more >GitHub to replace 'master' with 'main' starting next month
"On Oct. 1, 2020, any new repositories you create will use main as the default branch, instead of master," the company said.
Read more >Changing the default branch
If you have more than one branch in your repository, you can configure any branch as the default branch. Who can use this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can confirm that this is working in our QA environment. I forked
mindpoint/rhel6-stig
repository and imported it. The result is here: https://galaxy-qa.ansible.com/api/v1/repositories/?provider_namespace__namespace__name=chouseknecht&name=rhel6_stig You can see thatimport_branch
is set to devel, which matches the repository default branch.Thanks for the update!