summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml8
-rw-r--r--bitbake/lib/bb/fetch2/git.py2
2 files changed, 9 insertions, 1 deletions
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml
index d1ce43e23a..6c8c87ca89 100644
--- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml
+++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.xml
@@ -588,6 +588,14 @@
588 The name of the path in which to place the checkout. 588 The name of the path in which to place the checkout.
589 By default, the path is <filename>git/</filename>. 589 By default, the path is <filename>git/</filename>.
590 </para></listitem> 590 </para></listitem>
591 <listitem><para><emphasis>"usehead":</emphasis>
592 Enables local <filename>git://</filename> URLs to use the
593 current branch HEAD as the revision for use with
594 <filename>AUTOREV</filename>.
595 The "usehead" parameter implies no branch and only works
596 when the transfer protocol is
597 <filename>file://</filename>.
598 </para></listitem>
591 </itemizedlist> 599 </itemizedlist>
592 Here are some example URLs: 600 Here are some example URLs:
593 <literallayout class='monospaced'> 601 <literallayout class='monospaced'>
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 7442f84414..f5d14cc5fe 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -267,7 +267,7 @@ class Git(FetchMethod):
267 logger.debug(1, "No Origin") 267 logger.debug(1, "No Origin")
268 268
269 runfetchcmd("%s remote add --mirror=fetch origin %s" % (ud.basecmd, repourl), d, workdir=ud.clonedir) 269 runfetchcmd("%s remote add --mirror=fetch origin %s" % (ud.basecmd, repourl), d, workdir=ud.clonedir)
270 fetch_cmd = "LANG=C %s fetch -f --prune --progress %s refs/*:refs/*" % (ud.basecmd, repourl) 270 fetch_cmd = "LANG=C %s fetch -f --progress %s refs/*:refs/*" % (ud.basecmd, repourl)
271 if ud.proto.lower() != 'file': 271 if ud.proto.lower() != 'file':
272 bb.fetch2.check_network_access(d, fetch_cmd, ud.url) 272 bb.fetch2.check_network_access(d, fetch_cmd, ud.url)
273 progresshandler = GitProgressHandler(d) 273 progresshandler = GitProgressHandler(d)