Skip to content

fetch2: git: Fix path check for git repos

Joshua Watt bitbake-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2utils: Add path_is_descendant()bitbake/lib/bb/utils.py+23 -00 replies
2/2fetch2: git: Use path_is_descendant() instead of path for repo checkbitbake/lib/bb/fetch2/git.py+6 -91 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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