diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2023-12-06 21:55:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-08 16:58:34 +0000 |
commit | 331f78ecc26d67eedc92c011556de4a972d99546 (patch) | |
tree | 25aceb18b9cbf1ba707465d9f9fa4b41e225f0f6 /meta | |
parent | 75b799635d8e7c18e0890c6b6951433501350042 (diff) | |
download | poky-331f78ecc26d67eedc92c011556de4a972d99546.tar.gz |
oeqa/selftest/devtool: Correct git clone of local repository
If the build environment is setup using `repo`, then poky/.git/object
is a symbolic link rather than a directory. To clone such repositories,
the source path must be prefixed with "file://". This avoids the
following error:
fatal: failed to start iterator over '.../poky/.git/objects': Not a directory
(From OE-Core rev: 8e3d08cb9274832a346ac3dffa8c9d5f6e93c478)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/devtool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py index 21e2268689..14a9d2f923 100644 --- a/meta/lib/oeqa/selftest/cases/devtool.py +++ b/meta/lib/oeqa/selftest/cases/devtool.py | |||
@@ -54,7 +54,7 @@ def setUpModule(): | |||
54 | result = runCmd('git rev-parse --show-toplevel', cwd=canonical_layerpath) | 54 | result = runCmd('git rev-parse --show-toplevel', cwd=canonical_layerpath) |
55 | oldreporoot = result.output.rstrip() | 55 | oldreporoot = result.output.rstrip() |
56 | newmetapath = os.path.join(corecopydir, os.path.relpath(oldmetapath, oldreporoot)) | 56 | newmetapath = os.path.join(corecopydir, os.path.relpath(oldmetapath, oldreporoot)) |
57 | runCmd('git clone %s %s' % (oldreporoot, corecopydir), cwd=templayerdir) | 57 | runCmd('git clone file://%s %s' % (oldreporoot, corecopydir), cwd=templayerdir) |
58 | # Now we need to copy any modified files | 58 | # Now we need to copy any modified files |
59 | # You might ask "why not just copy the entire tree instead of | 59 | # You might ask "why not just copy the entire tree instead of |
60 | # cloning and doing this?" - well, the problem with that is | 60 | # cloning and doing this?" - well, the problem with that is |