summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 5b678827ed..0ea55e139d 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -727,6 +727,11 @@ class Git(FetchMethod):
727 clonedir = os.path.realpath(ud.localpath) 727 clonedir = os.path.realpath(ud.localpath)
728 to_remove.append(clonedir) 728 to_remove.append(clonedir)
729 729
730 # Remove shallow mirror tarball
731 if ud.shallow:
732 to_remove.append(ud.fullshallow)
733 to_remove.append(ud.fullshallow + ".done")
734
730 for r in to_remove: 735 for r in to_remove:
731 if os.path.exists(r): 736 if os.path.exists(r):
732 bb.note('Removing %s' % r) 737 bb.note('Removing %s' % r)