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

Re: Pulling from refs/remotes/ ?

From
Han-Wen Nienhuys <hanwen@xs4all.nl>
Date
May 26, 2007, 19:47 UTC
Message-ID
<46588EEC.4080101@xs4all.nl>
In-Reply-To
<7vwsyxsit8.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano escreveu:
Show 5 quoted lines
> And the reason it is "insane" is the same as why we currently do
> not interpret "git pull $repo origin/master" as a request to
> pull from remotes/origin/master.  It really is none of your
> business what kind of remote branches the other end is
> interacting with.

fair enough; my remaining gripe is that the error message is broken. My suggestion is to have

  git fetch . XXX
(and by extension: pull) print something like
  Will not fetch from self. 
  Do you mean "git merge XXX" or "git update-ref XXX" ? 

It may be an artificial restriction when compared to "git pull $dir XXX" but I think it helps the user better than "Fetch failure".

-- 
 Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
Previous: Junio C Hamano
Message 7 of 7 in “Pulling from refs/remotes/ ?”
  1. Han-Wen NienhuysMay 25, 2007
  2. Junio C HamanoMay 25, 2007
  3. Han-Wen NienhuysMay 25, 2007
  4. Junio C HamanoMay 25, 2007
  5. Han-Wen NienhuysMay 25, 2007
  6. Junio C HamanoMay 25, 2007
  7. Han-Wen NienhuysMay 26, 2007

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.