fetch2: git: Fix path check for git repos
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | utils: Add path_is_descendant()bitbake/ | +23 | 0 replies | |
| 2/2 | fetch2: git: Use path_is_descendant() instead of path for repo checkbitbake/ | +6 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [bitbake-devel][PATCH 0/2] fetch2: git: Fix path check for git repos
The original implementation of this didn't account for symlinks/bind mounts/etc. To simplify the code, make a new helper function called path_is_descendant() that correctly accounts for these, then have the git fetcher use it to determine if a git repo needs to be re-cloned.
Joshua Watt (2):
utils: Add path_is_descendant()
fetch2: git: Use path_is_descendant() instead of path for repo check
bitbake/lib/bb/fetch2/git.py | 15 ++++++--------- bitbake/lib/bb/utils.py | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 9 deletions(-)
Signature · 1 line
2.34.1