From c3a887302b587bc14f88e7a757c6aeddc24c79ba Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Fri, 17 Apr 2009 23:13:54 +0000 Subject: [PATCH] bb.fetch.git: make empty host pass a file uri to git. Signed-off-by: Tom Rini Signed-off-by: Chris Larson --- lib/bb/fetch/git.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/bb/fetch/git.py b/lib/bb/fetch/git.py index ad6919bda51..8006466cfca 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") -- 2.47.3