summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2009-04-17 23:13:05 +0000
committerChris Larson <clarson@kergoth.com>2009-04-17 23:13:05 +0000
commitcfe577c9963153a2c2e6586758caa15127dff38b (patch)
tree66942c3c43d3649b14e5ee06b34004ef78dddf64
parent15a974244df2de2c4b363af43709171e28125c47 (diff)
downloadbitbake-cfe577c9963153a2c2e6586758caa15127dff38b.tar.gz
bb.fetch.git: make empty host pass a file uri to git.
Signed-off-by: Tom Rini <trini@embeddedalley.com> Signed-off-by: Chris Larson <clarson@mvista.com>
-rw-r--r--lib/bb/fetch/git.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/fetch/git.py b/lib/bb/fetch/git.py
index ad6919bda..8006466cf 100644
--- a/lib/bb/fetch/git.py
+++ b/lib/bb/fetch/git.py
@@ -37,9 +37,12 @@ class Git(Fetch):
def localpath(self, url, ud, d):
- ud.proto = "rsync"
if 'protocol' in ud.parm:
ud.proto = ud.parm['protocol']
+ elif not ud.host:
+ ud.proto = 'file'
+ else:
+ ud.proto = "rsync"
ud.branch = ud.parm.get("branch", "master")