Bug 10488

Summary: Changing Git revision in Toaster has no effect
Product: [Build System, Metadata & Runtime] Toaster Reporter: tomasz.meresinski
Component: toasterAssignee: David Reyna <david.reyna>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Medium CC: benjamin.esquivel, jessica.zhang, stanciux.mihail
Version: 2.1.2   
Target Milestone: 5.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description tomasz.meresinski 2016-10-22 10:09:45 UTC
Steps to reproduce:
1. Import some layer - set Git revision to master.
2. Go to edit layer and change Git revision to krogoth.
3. In that layer I didn't have master branch (only krogoth) so my build failed with:

WARNING localhostbecontroller: shellcmd error command: git fetch --all && git reset --hard "origin/master"
From host:project
* [new branch]      krogoth    -> origin/krogoth
fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

I checked in database what happened and I found out, that my layer in orm_layer_version table has branch set as master and commit set as krogoth. 
After I changed branch to krogoth in the database everything works fine.
Comment 1 Randy MacLeod 2023-10-24 14:24:33 UTC
Bulk move from 4.99 or 0.00 to 5.99