Bug 10488 - Changing Git revision in Toaster has no effect
Summary: Changing Git revision in Toaster has no effect
Status: NEW
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.1.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 5.99
Assignee: David Reyna
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-10-22 10:09 UTC by tomasz.meresinski
Modified: 2025-06-11 08:57 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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