aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2018-02-08 12:29:38 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-09 14:10:41 +0000
commit038a5f4b767df7944e73b2e859ac3af2d3a08bf1 (patch)
tree60a530667a04e1b4dca7c7daefd1f05ea961a77d
parenta335dbbb65d5b56e71d98cf3e4fa9bfbec1dcde6 (diff)
downloadbitbake-038a5f4b767df7944e73b2e859ac3af2d3a08bf1.zip
bitbake-038a5f4b767df7944e73b2e859ac3af2d3a08bf1.tar.gz
bitbake-038a5f4b767df7944e73b2e859ac3af2d3a08bf1.tar.bz2
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. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/toaster/bldcontrol/localhostbecontroller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/toaster/bldcontrol/localhostbecontroller.py b/lib/toaster/bldcontrol/localhostbecontroller.py
index 4c17562..16c7c80 100644
--- a/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -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")):