summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-02 17:46:37 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-02 17:46:37 +0000
commitadfa6c40dadebb18bfd457859300d8c093b007f7 (patch)
treef8ddd85e3258a37af582c76ea9b6d65a5d8067db /bitbake
parent43addfd01d97fe327b62ad000dccccfb6185fabe (diff)
downloadpoky-adfa6c40dadebb18bfd457859300d8c093b007f7.tar.gz
bitbake/fetch2/git: Ensure target directory exists when copying files
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/git.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index c54d826a01..d396d2458a 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -156,6 +156,7 @@ class Git(Fetch):
156 156
157 runfetchcmd("git clone -s -n %s %s" % (ud.clonedir, destdir), d) 157 runfetchcmd("git clone -s -n %s %s" % (ud.clonedir, destdir), d)
158 if os.path.exists("%s/.git/refs/remotes/origin" % ud.clonedir): 158 if os.path.exists("%s/.git/refs/remotes/origin" % ud.clonedir):
159 bb.mkdirhier("%s/.git/refs/remotes/origin/" % destdir)
159 runfetchcmd("cp -af %s/.git/refs/remotes/origin/* %s/.git/refs/remotes/origin/" %(ud.clonedir, destdir), d) 160 runfetchcmd("cp -af %s/.git/refs/remotes/origin/* %s/.git/refs/remotes/origin/" %(ud.clonedir, destdir), d)
160 if os.path.exists("%s/.git/packed-refs" % ud.clonedir): 161 if os.path.exists("%s/.git/packed-refs" % ud.clonedir):
161 runfetchcmd("cp -af %s/.git/packed-refs %s/.git/" %(ud.clonedir, destdir), d) 162 runfetchcmd("cp -af %s/.git/packed-refs %s/.git/" %(ud.clonedir, destdir), d)