mbox series

[bitbake-devel,0/2] fetch2: git: Fix path check for git repos

Message ID 20230913190425.3761792-1-JPEWhacker@gmail.com
Headers show
Series fetch2: git: Fix path check for git repos | expand


Joshua Watt Sept. 13, 2023, 7:04 p.m. UTC
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(-)