Message ID | a30db7d0be75efca201652c1210aaa4d1b426918.1729933869.git.liezhi.yang@windriver.com |
---|---|
State | Accepted, archived |
Commit | bab7a8970a0237a9d24217685a595e76a1336c07 |
Headers | show |
Series | [1/5] gitsm: Add call_process_submodules() to remove duplicated code | expand |
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py index 5b678827e..0ea55e139 100644 --- a/lib/bb/fetch2/git.py +++ b/lib/bb/fetch2/git.py @@ -727,6 +727,11 @@ class Git(FetchMethod): clonedir = os.path.realpath(ud.localpath) to_remove.append(clonedir) + # Remove shallow mirror tarball + if ud.shallow: + to_remove.append(ud.fullshallow) + to_remove.append(ud.fullshallow + ".done") + for r in to_remove: if os.path.exists(r): bb.note('Removing %s' % r)