question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import on galaxy uses master branch by default

See original GitHub issue

Bug 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:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
chouseknechtcommented, Jul 19, 2018

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 that import_branch is set to devel, which matches the repository default branch.

0reactions
shepdelacremecommented, Jul 19, 2018

Thanks for the update!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found