]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
git fetcher: add support for rebaseable git repo
authorYu Ke <ke.yu@intel.com>
Sun, 15 May 2011 14:33:30 +0000 (22:33 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 May 2011 14:19:19 +0000 (15:19 +0100)
commit92701d4c5372db48847c70da4ebd0736d79fd54b
tree4fdb23b59c1b757968e4c5f6334272f4050caf1a
parent2bc8f405ec552ae0f1a79790569b2d044a35d3ba
git fetcher: add support for rebaseable git repo

Some upstream git repo may rebase in the future, which means current
revision may disappear from the upstream repo after the rebase.

current git fetcher can not handle this case, because the git mirror
tar ball is per repo, and may also change in the rebase and lost the
current revision info.

To fix this issue, this patch
- add rebaseable tag in the SRC_URI
- for rebaseable repo, make git mirror tar ball per revision, in this
  case, even upstream rebase, the git mirror still has the current
  revision info.
- for rebaseable repo, generate mirror tar ball by default, since the
  repo may change in the future.

Signed-off-by: Yu Ke <ke.yu@intel.com>
lib/bb/fetch2/git.py