diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index a05402a311..3b8965e49c 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
| @@ -3,6 +3,41 @@ | |||
| 3 | """ | 3 | """ |
| 4 | BitBake 'Fetch' git implementation | 4 | BitBake 'Fetch' git implementation |
| 5 | 5 | ||
| 6 | git fetcher support the SRC_URI with format of: | ||
| 7 | SRC_URI = "git://some.host/somepath;OptionA=xxx;OptionB=xxx;..." | ||
| 8 | |||
| 9 | Supported SRC_URI options are: | ||
| 10 | |||
| 11 | - branch | ||
| 12 | The git branch to retrieve from. The default is "master" | ||
| 13 | |||
| 14 | this option also support multiple branches fetching, branches | ||
| 15 | are seperated by comma. in multiple branches case, the name option | ||
| 16 | must have the same number of names to match the branches, which is | ||
| 17 | used to specify the SRC_REV for the branch | ||
| 18 | e.g: | ||
| 19 | SRC_URI="git://some.host/somepath;branch=branchX,branchY;name=nameX,nameY" | ||
| 20 | SRCREV_nameX = "xxxxxxxxxxxxxxxxxxxx" | ||
| 21 | SRCREV_nameY = "YYYYYYYYYYYYYYYYYYYY" | ||
| 22 | |||
| 23 | - tag | ||
| 24 | The git tag to retrieve. The default is "master" | ||
| 25 | |||
| 26 | - protocol | ||
| 27 | The method to use to access the repository. Common options are "git", | ||
| 28 | "http", "file" and "rsync". The default is "git" | ||
| 29 | |||
| 30 | - rebaseable | ||
| 31 | rebaseable indicates that the upstream git repo may rebase in the future, | ||
| 32 | and current revision may disappear from upstream repo. This option will | ||
| 33 | reminder fetcher to preserve local cache carefully for future use. | ||
| 34 | The default value is "0", set rebaseable=1 for rebaseable git repo | ||
| 35 | |||
| 36 | - nocheckout | ||
| 37 | Don't checkout source code when unpacking. set this option for the recipe | ||
| 38 | who has its own routine to checkout code. | ||
| 39 | The default is "0", set nocheckout=1 if needed. | ||
| 40 | |||
| 6 | """ | 41 | """ |
| 7 | 42 | ||
| 8 | #Copyright (C) 2005 Richard Purdie | 43 | #Copyright (C) 2005 Richard Purdie |
| @@ -55,9 +90,6 @@ class Git(FetchMethod): | |||
| 55 | 90 | ||
| 56 | ud.nocheckout = ud.parm.get("nocheckout","0") == "1" | 91 | ud.nocheckout = ud.parm.get("nocheckout","0") == "1" |
| 57 | 92 | ||
| 58 | # rebaseable means the upstream git repo may rebase in the future, | ||
| 59 | # and current revision may disappear from upstream repo | ||
| 60 | # rebaseable is false by default. set rebaseable=1 in SRC_URI if rebaseable. | ||
| 61 | ud.rebaseable = ud.parm.get("rebaseable","0") == "1" | 93 | ud.rebaseable = ud.parm.get("rebaseable","0") == "1" |
| 62 | 94 | ||
| 63 | branches = ud.parm.get("branch", "master").split(',') | 95 | branches = ud.parm.get("branch", "master").split(',') |
