summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/git.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 6979beaef5..f3bc793a6a 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -88,6 +88,9 @@ class Git(FetchMethod):
88 else: 88 else:
89 ud.proto = "git" 89 ud.proto = "git"
90 90
91 if not ud.proto in ('git', 'file', 'ssh', 'http', 'https'):
92 raise bb.fetch2.ParameterError("Invalid protocol type", ud.url)
93
91 ud.nocheckout = ud.parm.get("nocheckout","0") == "1" 94 ud.nocheckout = ud.parm.get("nocheckout","0") == "1"
92 95
93 ud.rebaseable = ud.parm.get("rebaseable","0") == "1" 96 ud.rebaseable = ud.parm.get("rebaseable","0") == "1"