diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2018-02-08 12:29:38 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-02-14 15:26:03 +0000 |
commit | 931f57080f5ec0912afa93fbda992d772724a2f8 (patch) | |
tree | cb33c399dfdc3d37b092959f219a317843b197b6 /bitbake | |
parent | f2d5967982359b924406e3937a8e32807a5bb533 (diff) | |
download | poky-931f57080f5ec0912afa93fbda992d772724a2f8.tar.gz |
bitbake: 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 rev: 038a5f4b767df7944e73b2e859ac3af2d3a08bf1)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py index 4c175625d6..16c7c80441 100644 --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | |||
@@ -192,7 +192,7 @@ class LocalhostBEController(BuildEnvironmentController): | |||
192 | if commit != "HEAD": | 192 | if commit != "HEAD": |
193 | logger.debug("localhostbecontroller: checking out commit %s to %s " % (commit, localdirname)) | 193 | logger.debug("localhostbecontroller: checking out commit %s to %s " % (commit, localdirname)) |
194 | ref = commit if re.match('^[a-fA-F0-9]+$', commit) else 'origin/%s' % commit | 194 | ref = commit if re.match('^[a-fA-F0-9]+$', commit) else 'origin/%s' % commit |
195 | self._shellcmd('git fetch --all && git reset --hard "%s"' % ref, localdirname,env=git_env) | 195 | self._shellcmd('git fetch && git reset --hard "%s"' % ref, localdirname,env=git_env) |
196 | 196 | ||
197 | # take the localdirname as poky dir if we can find the oe-init-build-env | 197 | # take the localdirname as poky dir if we can find the oe-init-build-env |
198 | if self.pokydirname is None and os.path.exists(os.path.join(localdirname, "oe-init-build-env")): | 198 | if self.pokydirname is None and os.path.exists(os.path.join(localdirname, "oe-init-build-env")): |