diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index e3ba80a3f5..3e25b4b604 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -168,7 +168,11 @@ class Git(FetchMethod): | |||
168 | if len(branches) != len(ud.names): | 168 | if len(branches) != len(ud.names): |
169 | raise bb.fetch2.ParameterError("The number of name and branch parameters is not balanced", ud.url) | 169 | raise bb.fetch2.ParameterError("The number of name and branch parameters is not balanced", ud.url) |
170 | 170 | ||
171 | ud.cloneflags = "-s -n" | 171 | ud.noshared = d.getVar("BB_GIT_NOSHARED") == "1" |
172 | |||
173 | ud.cloneflags = "-n" | ||
174 | if not ud.noshared: | ||
175 | ud.cloneflags += " -s" | ||
172 | if ud.bareclone: | 176 | if ud.bareclone: |
173 | ud.cloneflags += " --mirror" | 177 | ud.cloneflags += " --mirror" |
174 | 178 | ||