From adfa6c40dadebb18bfd457859300d8c093b007f7 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 2 Feb 2011 17:46:37 +0000 Subject: bitbake/fetch2/git: Ensure target directory exists when copying files Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/git.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/lib/bb/fetch2') diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index c54d826a0..d396d2458 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -156,6 +156,7 @@ class Git(Fetch): runfetchcmd("git clone -s -n %s %s" % (ud.clonedir, destdir), d) if os.path.exists("%s/.git/refs/remotes/origin" % ud.clonedir): + bb.mkdirhier("%s/.git/refs/remotes/origin/" % destdir) runfetchcmd("cp -af %s/.git/refs/remotes/origin/* %s/.git/refs/remotes/origin/" %(ud.clonedir, destdir), d) if os.path.exists("%s/.git/packed-refs" % ud.clonedir): runfetchcmd("cp -af %s/.git/packed-refs %s/.git/" %(ud.clonedir, destdir), d) -- cgit v1.2.3