Bug 8953 - Toaster ignores the subdirectory when cloning imported layers
Summary: Toaster ignores the subdirectory when cloning imported layers
Status: RESOLVED NOTABUG
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.0
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.2
Assignee: Michael Wood
QA Contact: Libertad
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-01-20 10:43 UTC by Belen Barros Pena
Modified: 2016-10-25 11:17 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 Belen Barros Pena 2016-01-20 10:43:00 UTC
Steps to reproduce:

1. Create a Toaster project
2. Import a layer with the following details

name: meta-sdr-test
git url: git://github.com/balister
subdirectory: meta-sdr
revision: master

3. Build something from the imported layer, for example, rtl-sdr

The build will fail at the cloning stage with this error:

 command: git clone "git://github.com/balister" "/home/yocto/master/_toaster_clones/_git___github.com_balister_master" 
Cloning into '/home/yocto/master/_toaster_clones/_git___github.com_balister_master'...
fatal: remote error: 
  Repository not found.

4. Go to the meta-sdr-test layer details page. Delete the subdirectory and set the git url to git://github.com/balister/meta-sdr

5. Run again the rtl-sdr build

The meta-sdr-test layer will be cloned without problems. It looks like Toaster is ignoring the subdirectory information when trying to clone the layer.
Comment 1 Belen Barros Pena 2016-01-20 12:01:25 UTC
After playing a bit more with this I've discovered that this won't clone:

name: meta-sdr-test
git url: git://github.com/balister
subdirectory: meta-sdr
revision: master

But this:

name: openembedded-core-test
git url: git://git.openembedded.org/openembedded-core
subdirectory: meta
revision: master

and this:

name: meta-oe-test
git url: git://git.openembedded.org/meta-openembedded
subdirectory: meta-oe
revision: master

will clone without problems. Now I am not sure what's going on.
Comment 2 Michael Wood 2016-10-25 11:17:34 UTC
Looking at git://github.com/balister it's not the correct git url for the layer which would be the problem here. There is no subdir the correct git url is git://github.com/balister/meta-sdr