|
@@ -44,7 +44,7 @@ Supported SRC_URI options are:
|
|
|
|
|
|
- nobranch
|
|
|
Don't check the SHA validation for branch. set this option for the recipe
|
|
|
- referring to commit which is valid in tag instead of branch.
|
|
|
+ referring to commit which is valid in any namespace instead of branch.
|
|
|
The default is "0", set nobranch=1 if needed.
|
|
|
|
|
|
- usehead
|
|
@@ -382,7 +382,11 @@ class Git(FetchMethod):
|
|
|
runfetchcmd("%s remote rm origin" % ud.basecmd, d, workdir=ud.clonedir)
|
|
|
|
|
|
runfetchcmd("%s remote add --mirror=fetch origin %s" % (ud.basecmd, shlex.quote(repourl)), d, workdir=ud.clonedir)
|
|
|
- fetch_cmd = "LANG=C %s fetch -f --progress %s refs/*:refs/*" % (ud.basecmd, shlex.quote(repourl))
|
|
|
+
|
|
|
+ if ud.nobranch:
|
|
|
+ fetch_cmd = "LANG=C %s fetch -f --progress %s refs/*:refs/*" % (ud.basecmd, shlex.quote(repourl))
|
|
|
+ else:
|
|
|
+ fetch_cmd = "LANG=C %s fetch -f --progress %s refs/heads/*:refs/heads/* refs/tags/*:refs/tags/*" % (ud.basecmd, shlex.quote(repourl))
|
|
|
if ud.proto.lower() != 'file':
|
|
|
bb.fetch2.check_network_access(d, fetch_cmd, ud.url)
|
|
|
progresshandler = GitProgressHandler(d)
|