Junio C Hamano escreveu: > Han-Wen Nienhuys <hanwen@xxxxxxxxx> writes: > >> Yes, that works, thanks. Wouldn't it be more consistent with this >> reasoning to disallow >> >> git pull . LOCAL-BRANCH >> >> too? > > I do not think so. > > If somebody else (or yourself) did: > > $ git pull $dir LOCAL-BRANCH > > (replace $dir with the `pwd` you would get in your repository), > that would work. Why shouldn't it work for yourself? Because "You are treating your local repository as if it is a remote repository somewhere else, namely, '.' (current repository)." that was the justification for not being able to pull in a remote branch. This justification (which I disagree with) applies to this case as well. I understand that we don't want people committing to remotes, because fetches will then later fail, but other than that, why should there be limitations on using a remote? -- Han-Wen Nienhuys - hanwen@xxxxxxxxx - http://www.xs4all.nl/~hanwen - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html