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