summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index ff7c33df10..9a578ae0be 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -213,7 +213,8 @@ class Git(FetchMethod):
213 else: 213 else:
214 readpathspec = "" 214 readpathspec = ""
215 215
216 destdir = os.path.join(destdir, "git/") 216 destsuffix = ud.parm.get("destsuffix", "git/")
217 destdir = os.path.join(destdir, destsuffix)
217 if os.path.exists(destdir): 218 if os.path.exists(destdir):
218 bb.utils.prunedir(destdir) 219 bb.utils.prunedir(destdir)
219 220