diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2024-05-03 09:10:30 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-13 16:28:35 +0100 |
commit | 9132e3904a8f26d49c4c425a0b7d25b71e586890 (patch) | |
tree | 8aef932caf8cb1f10ffbca9118b7ea720329ef11 /scripts/lib/scriptpath.py | |
parent | e73ea1a868331bc60de1717282f1c7a4139eeb30 (diff) | |
download | poky-9132e3904a8f26d49c4c425a0b7d25b71e586890.tar.gz |
patchtest: repo: refactor to use GitPython
The repo module currently uses a custom _exec() function in order to run
various git commands as part of the patchtest setup/test process. These
can more efficiently be done with the GitPython module, so use that
instead and reduce the amount of custom code to be maintained for
patchtest in the process. Some specifics replaced using GitPython:
- get branch list
- use repo.active_branch to determine current branch
- use execute() for checkout, merge check, abort, rev-parse, reset
The _exec() function is removed entirely with this change.
(From OE-Core rev: 8ab3a0d7cb68746d7b7e1c7ff8bdf9a84a4d075d)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptpath.py')
0 files changed, 0 insertions, 0 deletions