diff options
author | Chris Larson <clarson@kergoth.com> | 2009-04-17 23:13:54 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2009-04-17 23:13:54 +0000 |
commit | c3a887302b587bc14f88e7a757c6aeddc24c79ba (patch) | |
tree | a95ca90d5640ad24035d9b04f3ccf89175d7843c | |
parent | 81b37c19c8716a56c93a519f15af76f5fede3e4d (diff) | |
download | bitbake-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.py | 5 |
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") |