diff options
| -rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 0779e809a3..bbd302ee78 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
| @@ -173,8 +173,8 @@ class Git(FetchMethod): | |||
| 173 | if len(branches) != len(ud.names): | 173 | if len(branches) != len(ud.names): |
| 174 | raise bb.fetch2.ParameterError("The number of name and branch parameters is not balanced", ud.url) | 174 | raise bb.fetch2.ParameterError("The number of name and branch parameters is not balanced", ud.url) |
| 175 | ud.branches = {} | 175 | ud.branches = {} |
| 176 | for name in ud.names: | 176 | for pos, name in enumerate(ud.names): |
| 177 | branch = branches[ud.names.index(name)] | 177 | branch = branches[pos] |
| 178 | ud.branches[name] = branch | 178 | ud.branches[name] = branch |
| 179 | ud.unresolvedrev[name] = branch | 179 | ud.unresolvedrev[name] = branch |
| 180 | 180 | ||
