Skip to contentSkip to conversation

bitbake: toaster: don't use git fetch --all

PATCH New Robert Yang 1 participant 2 messages Feb 8, 2018

lore
Share & tools
lore
#0 lore raw

cover bitbake: toaster: don't use git fetch --all

The following changes since commit 44ea6ded0e8e73f5258ce55bd1b851e24243b76a:

bitbake: bitbake-user-manual: Commented out Placeholder Paragraph (2018-02-06 18:10:35 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib rbt/toaster
http://git.pokylinux.org/cgit.cgi//log/?h=rbt/toaster

Robert Yang (1):
bitbake: toaster: don't use git fetch --all

 bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 bitbake: toaster: don't use git fetch --all

The '--all'' fetches all remotes, including the ones in $HOME/.gitconfig, which causes the fetching very slow, so don't use "--all", git fetch should be enough.

---
 bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +1 -1
index 4c17562..16c7c80 100644
@@ -192,7 +192,7 @@ class LocalhostBEController(BuildEnvironmentController):
             if commit != "HEAD":
                 logger.debug("localhostbecontroller: checking out commit %s to %s " % (commit, localdirname))
                 ref = commit if re.match('^[a-fA-F0-9]+$', commit) else 'origin/%s' % commit
-                self._shellcmd('git fetch --all && git reset --hard "%s"' % ref, localdirname,env=git_env)
+                self._shellcmd('git fetch && git reset --hard "%s"' % ref, localdirname,env=git_env)
 
             # take the localdirname as poky dir if we can find the oe-init-build-env
             if self.pokydirname is None and os.path.exists(os.path.join(localdirname, "oe-init-build-env")):
Signature · 1 line
2.7.4