Junio C Hamano escreveu:
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