git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: `-u`/`update-head-ok` unsupported on pull

From
Stefan Beller <sbeller@google.com>
Date
Oct 8, 2015, 18:13 UTC
Message-ID
<CAGZ79kavoUw5tkeABkYXEsa7jt-2aRxjGyOB+=ofnuqpQBGGkA@mail.gmail.com>
In-Reply-To
<CAA5Ydx9ySzEBWcUkmGQKTq93W0HzfEmb3ER7GPKzcnQJ0dbFKw@mail.gmail.com>
+Paul Tan who rewrote git pull in C recently.
The manpage:
-u, --update-head-ok
           By default git fetch refuses to update the head which
corresponds to the current branch. This flag disables the check. This
is purely for the internal use for git pull to communicate with
           git fetch, and unless you are implementing your own
Porcelain you are not supposed to use it.

I guess we either need to update the manpage to remove that option then, or add it back in in case somebody actually uses it despite the warning in the man page?

Previous: Victor Engmark
Message 2 of 2 in “`-u`/`update-head-ok` unsupported on pull”
  1. Victor EngmarkOct 8, 2015
  2. Stefan BellerOct 8, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.