Description of problem: I cannot import automate code from git, if the repository does not have master branch. Steps to Reproduce: 1. Create git repository with different default branch than master. Add some valid code, for example exported one. 2. Navigate to Automation -> Automate -> Import/Export 3. Enter credentials and hit the submit button. Actual results: Import failed Expected results: Domain was imported from git. Additional info: The problem is in GitWorktree file, where master is hard-coded.
I have prepared my own patch to get it working in my case. I will prepare PullRequest in GitHub.
Pull Requqest attached: https://github.com/ManageIQ/manageiq/pull/16430
https://github.com/ManageIQ/manageiq/pull/16690 Merged
Fixed and verified in 5.10.0.1.20180619163011_900fdc4. Git repository without master branch successfully imported.