diff options
author | Christopher Larson <chris_larson@mentor.com> | 2017-07-28 13:47:53 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-30 08:43:36 +0100 |
commit | e75639f85ab7d92ff4637049c2c8af389fb2c50b (patch) | |
tree | ec61dc0d39ffbd102ab4fb3cc117d94940e11e35 /bitbake | |
parent | e4c9a92cb46bbb61d3ac0e917397eed08cf82410 (diff) | |
download | poky-e75639f85ab7d92ff4637049c2c8af389fb2c50b.tar.gz |
bitbake: tests/fetch: fix GitShallowTest.test_bitbake
`git fetch --tags` seems to interact badly with `mirror=fetch`, resulting in
the regular branches not being fetched, so drop the unnecessary `--tags`. This
fixes this unit test failure: `bb.fetch2.FetchError: Fetcher failure: Unable
to resolve 'master' in upstream git repository in git ls-remote output for
/tmp/tmp4ag_mgmn/gitsource`
[YOCTO #11698]
(Bitbake rev: 2d0203fae08c5ff8dc3e9afaa9a819abc4a1af6f)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 343ae8fe5e..faa5c74aae 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -1440,7 +1440,7 @@ class GitShallowTest(FetcherTest): | |||
1440 | def test_bitbake(self): | 1440 | def test_bitbake(self): |
1441 | self.git('remote add --mirror=fetch origin git://github.com/openembedded/bitbake', cwd=self.srcdir) | 1441 | self.git('remote add --mirror=fetch origin git://github.com/openembedded/bitbake', cwd=self.srcdir) |
1442 | self.git('config core.bare true', cwd=self.srcdir) | 1442 | self.git('config core.bare true', cwd=self.srcdir) |
1443 | self.git('fetch --tags', cwd=self.srcdir) | 1443 | self.git('fetch', cwd=self.srcdir) |
1444 | 1444 | ||
1445 | self.d.setVar('BB_GIT_SHALLOW_DEPTH', '0') | 1445 | self.d.setVar('BB_GIT_SHALLOW_DEPTH', '0') |
1446 | # Note that the 1.10.0 tag is annotated, so this also tests | 1446 | # Note that the 1.10.0 tag is annotated, so this also tests |