diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /scripts/git | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
The poky repository master branch is no longer being updated.
You can either:
a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs
b) use the new bitbake-setup
You can find information about either approach in our documentation:
https://docs.yoctoproject.org/
Note that "poky" the distro setting is still available in meta-yocto as
before and we continue to use and maintain that.
Long live Poky!
Some further information on the background of this change can be found
in: https://lists.openembedded.org/g/openembedded-architecture/message/2179
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/git')
| -rwxr-xr-x | scripts/git | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/scripts/git b/scripts/git deleted file mode 100755 index 689adbf9dd..0000000000 --- a/scripts/git +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | #!/usr/bin/env python3 | ||
| 2 | # | ||
| 3 | # Copyright OpenEmbedded Contributors | ||
| 4 | # | ||
| 5 | # SPDX-License-Identifier: MIT | ||
| 6 | # | ||
| 7 | # Wrapper around 'git' that doesn't think we are root | ||
| 8 | |||
| 9 | import os | ||
| 10 | import shutil | ||
| 11 | import sys | ||
| 12 | |||
| 13 | os.environ['PSEUDO_UNLOAD'] = '1' | ||
| 14 | |||
| 15 | # calculate path to the real 'git' | ||
| 16 | path = os.environ['PATH'] | ||
| 17 | # we need to remove our path but also any other copy of this script which | ||
| 18 | # may be present, e.g. eSDK. | ||
| 19 | replacements = [os.path.dirname(sys.argv[0])] | ||
| 20 | for p in path.split(":"): | ||
| 21 | if p.endswith("/scripts"): | ||
| 22 | replacements.append(p) | ||
| 23 | for r in replacements: | ||
| 24 | path = path.replace(r, '/ignoreme') | ||
| 25 | real_git = shutil.which('git', path=path) | ||
| 26 | |||
| 27 | if len(sys.argv) == 1: | ||
| 28 | os.execl(real_git, 'git') | ||
| 29 | |||
| 30 | os.execv(real_git, sys.argv) | ||
