aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2009-04-17 23:13:54 +0000
committerChris Larson <clarson@kergoth.com>2009-04-17 23:13:54 +0000
commitc3a887302b587bc14f88e7a757c6aeddc24c79ba (patch)
treea95ca90d5640ad24035d9b04f3ccf89175d7843c
parent81b37c19c8716a56c93a519f15af76f5fede3e4d (diff)
downloadbitbake-c3a887302b587bc14f88e7a757c6aeddc24c79ba.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")