Project

General

Profile

Actions

Bug #28716

closed

Templates Export to empty git repo is failing with error : <branch> did not find file known to git

Added by Ondřej Pražák over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
High
Target version:
-
Fixed in Releases:
Found in Releases:

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.

Actions #1

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
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases foreman_templates 7.0.5 added
Actions #3

Updated by Ondřej Pražák over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by The Foreman Bot over 4 years ago

  • Pull request https://github.com/theforeman/foreman_templates/pull/135 added
Actions #5

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)
Actions

Also available in: Atom PDF