diff options
| -rw-r--r-- | bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml | 16 | ||||
| -rw-r--r-- | bitbake/lib/bb/fetch2/gitsm.py | 10 |
2 files changed, 23 insertions, 3 deletions
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml index 5aa53defc4..858054f2f2 100644 --- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml +++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml | |||
| @@ -570,6 +570,19 @@ | |||
| 570 | </para> | 570 | </para> |
| 571 | </section> | 571 | </section> |
| 572 | 572 | ||
| 573 | <section id='gitsm-fetcher'> | ||
| 574 | <title>GIT Submodule Fetcher (<filename>gitsm://</filename>)</title> | ||
| 575 | |||
| 576 | <para> | ||
| 577 | This fetcher inherits from the Git fetcher and extends its | ||
| 578 | behavior by fetching a repositories submodules. | ||
| 579 | Uri is passed to the Git fetcher so see <link linkend='git-fetcher'> | ||
| 580 | the git fetcher documentation for syntax</link>. | ||
| 581 | NOTE: You must clean a recipe when switching between 'git://' and | ||
| 582 | 'gitsm://' urls. | ||
| 583 | </para> | ||
| 584 | </section> | ||
| 585 | |||
| 573 | <section id='other-fetchers'> | 586 | <section id='other-fetchers'> |
| 574 | <title>Other Fetchers</title> | 587 | <title>Other Fetchers</title> |
| 575 | 588 | ||
| @@ -583,9 +596,6 @@ | |||
| 583 | Perforce (<filename>p4://</filename>) | 596 | Perforce (<filename>p4://</filename>) |
| 584 | </para></listitem> | 597 | </para></listitem> |
| 585 | <listitem><para> | 598 | <listitem><para> |
| 586 | Git Submodules (<filename>gitsm://</filename>) | ||
| 587 | </para></listitem> | ||
| 588 | <listitem><para> | ||
| 589 | Trees using Git Annex (<filename>gitannex://</filename>) | 599 | Trees using Git Annex (<filename>gitannex://</filename>) |
| 590 | </para></listitem> | 600 | </para></listitem> |
| 591 | <listitem><para> | 601 | <listitem><para> |
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py index 1a762153c4..c125cff54b 100644 --- a/bitbake/lib/bb/fetch2/gitsm.py +++ b/bitbake/lib/bb/fetch2/gitsm.py | |||
| @@ -2,6 +2,16 @@ | |||
| 2 | # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- | 2 | # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- |
| 3 | """ | 3 | """ |
| 4 | BitBake 'Fetch' git submodules implementation | 4 | BitBake 'Fetch' git submodules implementation |
| 5 | |||
| 6 | Inherits from and extends the Git fetcher to retrieve submodules of a git repository | ||
| 7 | after cloning. | ||
| 8 | |||
| 9 | SRC_URI = "gitsm://<see Git fetcher for syntax>" | ||
| 10 | |||
| 11 | See the Git fetcher, git://, for usage documentation. | ||
| 12 | |||
| 13 | NOTE: Switching a SRC_URI from "git://" to "gitsm://" requires a clean of your recipe. | ||
| 14 | |||
| 5 | """ | 15 | """ |
| 6 | 16 | ||
| 7 | # Copyright (C) 2013 Richard Purdie | 17 | # Copyright (C) 2013 Richard Purdie |
