Bug 1551626

Summary: Automate code from git does not work for repositories without master
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: AutomateAssignee: mkanoor
Status: CLOSED CURRENTRELEASE QA Contact: Angelina Vasileva <anikifor>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: dmetzger, jhardy, jocarter, mfeifer, mkanoor, obarenbo, simaishi, smallamp, tfitzger
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.2.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1508881 Environment:
Last Closed: 2018-10-03 12:18:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1508881    
Bug Blocks:    

Comment 2 CFME Bot 2018-03-07 19:41:36 UTC
New commit detected on ManageIQ/manageiq/gaprindashvili:

https://github.com/ManageIQ/manageiq/commit/8dce13781843b85db7128cad9e615dc2711cba62
commit 8dce13781843b85db7128cad9e615dc2711cba62
Author:     Jason Frey <fryguy9>
AuthorDate: Mon Feb 26 14:46:39 2018 -0500
Commit:     Jason Frey <fryguy9>
CommitDate: Mon Feb 26 14:46:39 2018 -0500

    Merge pull request #16690 from mkanoor/fixed_hang_issues

    Support Automate Git repos without master branch
    (cherry picked from commit 2b45079611e9d17f2c1e5f0930cb17ede23b3fbc)

    https://bugzilla.redhat.com/show_bug.cgi?id=1551626

 lib/git_worktree.rb | 43 +-
 spec/fixtures/git_repos/no_master.git/HEAD | 1 +
 spec/fixtures/git_repos/no_master.git/config | 6 +
 spec/fixtures/git_repos/no_master.git/objects/43/0ff1dcee43d2e8a12c3ba36f5ff20e46136152 | 0 
 spec/fixtures/git_repos/no_master.git/objects/44/f84e202a8eb9d8d35fc183ae8637db3b003aa8 | 1 +
 spec/fixtures/git_repos/no_master.git/objects/78/3878cb3ed5964c75767141176c80f7d528abb5 | 0 
 spec/fixtures/git_repos/no_master.git/objects/95/99fdeb034597d90d72d2f58396dee096885b79 | 0 
 spec/fixtures/git_repos/no_master.git/objects/ae/fde3a01f6e10d72fd4899ce14c8b2654d3eb45 | 0 
 spec/fixtures/git_repos/no_master.git/objects/e3/16f7d7548ea8f874c872ff3be04f4e9849833b | 0 
 spec/fixtures/git_repos/no_master.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 | 0 
 spec/fixtures/git_repos/no_master.git/objects/fd/b4bc8c22f4b3ca8279c2e1eb92670893473d05 | 2 +
 spec/fixtures/git_repos/no_master.git/packed-refs | 3 +
 spec/fixtures/git_repos/no_master.git/refs/.gitkeep | 0 
 spec/fixtures/git_repos/no_master.git/refs/tags/tag1 | 1 +
 spec/fixtures/git_repos/no_master.git/refs/tags/tag2 | 1 +
 spec/lib/git_worktree_spec.rb | 19 +
 16 files changed, 61 insertions(+), 16 deletions(-)

Comment 5 mkanoor 2018-10-02 13:40:53 UTC
No we don't need any other PRs other than the one mentioned here.

Comment 7 Angelina Vasileva 2018-10-03 12:17:17 UTC
Fixed and verified in 5.9.5.0.20180927190514_e161d8f. Git repository without master branch successfully imported.