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

What is "-u" supposed to mean in git-fetch?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 26, 2006, 10:57 UTC
Message-ID
<Pine.LNX.4.63.0601261148510.32499@wbgn013.biozentrum.uni-wuerzburg.de>
Hi,

96b086d6 introduced "-u" to mean "--upload-pack" taking one argument. But long ago, b10ac50f1 from Aug 10 already introduced "-u" to mean "--update-head-ok" (without argument). This broke my scripts badly.

So, what is it?
Also, in the course of researching this, I tried
	git-whatchanged git-fetch-script

because git-whatchanged does not follow renames. But that did not work, because there is no current file of that name! When I created a dummy file of that name, git-whatchanged worked real fine! I consider that behaviour a bug.

Ciao, Dscho

Next: Junio C Hamano
Message 1 of 3 in “What is "-u" supposed to mean in git-fetch?”
  1. Johannes SchindelinJan 26, 2006
  2. Junio C HamanoJan 26, 2006
  3. Junio C HamanoJan 27, 2006

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.