Bug #28716
closedTemplates Export to empty git repo is failing with error : <branch> did not find file known to git
Description
Description of problem:
Export to empty git repository without any branches fails with error:
Error : "git '--git-dir=/tmp/d20191218-16244-1zdqb6/.git' '--work-tree=/tmp/d20191218-16244-1zdqb6' checkout 'master' 2>&1:error: pathspec 'master' did not match any file(s) known to git."
How reproducible:
Always on empty git repo
Steps to Reproduce:
1. Attempt to export templates to an empty git repository. (Make sure you have added foreman public key to the repo already)
Actual results:
Error : "git '--git-dir=/tmp/d20191218-16244-1zdqb6/.git' '--work-tree=/tmp/d20191218-16244-1zdqb6' checkout 'master' 2>&1:error: pathspec 'master' did not match any file(s) known to git."
Expected results:
The successful template export to Git repo.
Updated by The Foreman Bot over 4 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Pražák
- Pull request https://github.com/theforeman/foreman_templates/pull/134 added
Updated by The Foreman Bot over 4 years ago
- Fixed in Releases foreman_templates 7.0.5 added
Updated by Ondřej Pražák over 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_templates|3ff95ff4fa6e5526953cca8ae9e0377ddd81f420.
Updated by The Foreman Bot over 4 years ago
- Pull request https://github.com/theforeman/foreman_templates/pull/135 added
Updated by Ondřej Pražák over 4 years ago
- Subject changed from Templates Export to empty git repo is failing with error : <branch> did not find file known to git to Templates Export to empty git repo is failing with error : <branch> did not find file known to git
- Fixed in Releases foreman_templates 7.0.6 added
- Fixed in Releases deleted (
foreman_templates 7.0.5)