summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/fetch2/gitsm.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py
index 4093f6e846..9fdde468cb 100644
--- a/bitbake/lib/bb/fetch2/gitsm.py
+++ b/bitbake/lib/bb/fetch2/gitsm.py
@@ -51,9 +51,9 @@ class GitSM(Git):
51 os.rename(ud.clonedir, gitdir) 51 os.rename(ud.clonedir, gitdir)
52 runfetchcmd("sed " + gitdir + "/config -i -e 's/bare.*=.*true/bare = false/'", d) 52 runfetchcmd("sed " + gitdir + "/config -i -e 's/bare.*=.*true/bare = false/'", d)
53 os.chdir(tmpclonedir) 53 os.chdir(tmpclonedir)
54 runfetchcmd("git reset --hard", d) 54 runfetchcmd(ud.basecmd + " reset --hard", d)
55 runfetchcmd("git submodule init", d) 55 runfetchcmd(ud.basecmd + " submodule init", d)
56 runfetchcmd("git submodule update", d) 56 runfetchcmd(ud.basecmd + " submodule update", d)
57 runfetchcmd("sed " + gitdir + "/config -i -e 's/bare.*=.*false/bare = true/'", d) 57 runfetchcmd("sed " + gitdir + "/config -i -e 's/bare.*=.*false/bare = true/'", d)
58 os.rename(gitdir, ud.clonedir,) 58 os.rename(gitdir, ud.clonedir,)
59 bb.utils.remove(tmpclonedir, True) 59 bb.utils.remove(tmpclonedir, True)
@@ -73,6 +73,6 @@ class GitSM(Git):
73 submodules = self.uses_submodules(ud, d) 73 submodules = self.uses_submodules(ud, d)
74 if submodules: 74 if submodules:
75 runfetchcmd("cp -r " + ud.clonedir + "/modules " + ud.destdir + "/.git/", d) 75 runfetchcmd("cp -r " + ud.clonedir + "/modules " + ud.destdir + "/.git/", d)
76 runfetchcmd("git submodule init", d) 76 runfetchcmd(ud.basecmd + " submodule init", d)
77 runfetchcmd("git submodule update", d) 77 runfetchcmd(ud.basecmd + " submodule update", d)
78 78