summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch/git.py')
-rw-r--r--bitbake/lib/bb/fetch/git.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py
index b37a09743e..6b565e3eb5 100644
--- a/bitbake/lib/bb/fetch/git.py
+++ b/bitbake/lib/bb/fetch/git.py
@@ -131,7 +131,7 @@ class Git(Fetch):
131 131
132 # If the checkout doesn't exist and the mirror tarball does, extract it 132 # If the checkout doesn't exist and the mirror tarball does, extract it
133 if not os.path.exists(ud.clonedir) and os.path.exists(repofile): 133 if not os.path.exists(ud.clonedir) and os.path.exists(repofile):
134 bb.mkdirhier(ud.clonedir) 134 bb.utils.mkdirhier(ud.clonedir)
135 os.chdir(ud.clonedir) 135 os.chdir(ud.clonedir)
136 runfetchcmd("tar -xzf %s" % (repofile), d) 136 runfetchcmd("tar -xzf %s" % (repofile), d)
137 137
@@ -188,7 +188,7 @@ class Git(Fetch):
188 os.chdir(coprefix) 188 os.chdir(coprefix)
189 runfetchcmd("%s checkout -q -f %s%s" % (ud.basecmd, ud.tag, readpathspec), d) 189 runfetchcmd("%s checkout -q -f %s%s" % (ud.basecmd, ud.tag, readpathspec), d)
190 else: 190 else:
191 bb.mkdirhier(codir) 191 bb.utils.mkdirhier(codir)
192 os.chdir(ud.clonedir) 192 os.chdir(ud.clonedir)
193 runfetchcmd("%s read-tree %s%s" % (ud.basecmd, ud.tag, readpathspec), d) 193 runfetchcmd("%s read-tree %s%s" % (ud.basecmd, ud.tag, readpathspec), d)
194 runfetchcmd("%s checkout-index -q -f --prefix=%s -a" % (ud.basecmd, coprefix), d) 194 runfetchcmd("%s checkout-index -q -f --prefix=%s -a" % (ud.basecmd, coprefix), d)