diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-08-24 13:53:32 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-30 10:41:54 +0100 |
commit | 10f38157a069cb6938323cadd5e523037a29ace9 (patch) | |
tree | d73d3a051c062adad9ba4a51327853ee7a03a6fd /bitbake/lib/toaster/toastergui/views.py | |
parent | 264e5fef9e8e15d2fca02b392ea1331c55ceea7c (diff) | |
download | poky-10f38157a069cb6938323cadd5e523037a29ace9.tar.gz |
bitbake: fetch2: git: Check if clone directory is a git repo
If the clone target directory exists and is a valid git repo, but the
git directory is not a child, it needs to be erased and re-cloned. One
example of how this can happen is if a clone creates the directory, but
then fails to actual clone and make it a git repository. This left-over
directory can be particularly problematic if the download directory is a
descent of some top layer git repo (e.g. the default with poky), as the
commands that operate on the remote later will then mangle the layers
git repository instead of the download git repo.
(Bitbake rev: 2117db3146ce38bb4a6e2df40b6cd2ab11b514d5)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
0 files changed, 0 insertions, 0 deletions