summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-22 12:52:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-25 14:57:16 +0100
commite05b423cc6f9f5193fecc605efc2ad47170fd0c6 (patch)
tree31a8398d2a6854af2832860cdb73924a3b06d79d /bitbake
parentdf929f4d379dafa29c6f0efe262c996606906c66 (diff)
downloadpoky-e05b423cc6f9f5193fecc605efc2ad47170fd0c6.tar.gz
bitbake: git.py: Remove -l option, its not necessary
If -l is specified and the source and destination are not on a common filesystem an error occurs. The -l option is however the default for git for local paths which the fetcher already now ensures in the file:// case. We can therefore safely drop the -l option. (Bitbake rev: 3aeb268b2aaab4bb8b1cfff1450e0b76aa8ce855) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 07d722a156..1c9a01cf33 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -188,9 +188,10 @@ class Git(FetchMethod):
188 188
189 # If the repo still doesn't exist, fallback to cloning it 189 # If the repo still doesn't exist, fallback to cloning it
190 if not os.path.exists(ud.clonedir): 190 if not os.path.exists(ud.clonedir):
191 # We do this since git will use a "-l" option automatically for local urls where possible
191 if repourl.startswith("file://"): 192 if repourl.startswith("file://"):
192 repourl = repourl[7:] 193 repourl = repourl[7:]
193 clone_cmd = "%s clone -l --bare --mirror %s %s" % (ud.basecmd, repourl, ud.clonedir) 194 clone_cmd = "%s clone --bare --mirror %s %s" % (ud.basecmd, repourl, ud.clonedir)
194 if ud.proto.lower() != 'file': 195 if ud.proto.lower() != 'file':
195 bb.fetch2.check_network_access(d, clone_cmd) 196 bb.fetch2.check_network_access(d, clone_cmd)
196 runfetchcmd(clone_cmd, d) 197 runfetchcmd(clone_cmd, d)