Re: [1.8.0] forbid full fetchspecs in git-pull
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Feb 1, 2011, 15:14 UTC
- Message-ID
- <201102011614.57366.trast@student.ethz.ch>
- In-Reply-To
- <AANLkTikxcd+gzeuJsQX1V5Wses8xWMnshdrOnYTvXgTq@mail.gmail.com>
Dmitry Potapov wrote:
> As to disallowing ':' in refspec completely, I am not so sure... Not > that I think it is very useful, but also I don't see how it can hurt > someone provided that the target branch cannot be the current branch.
IRC experience shows that people, while on some topic branch, run
git pull origin master:master
expecting it to "pull master into master" (or even worse with three different branch names). So no, the current branch safeguard does not prevent the fundamental mistake.
--
Thomas Rast
trast@{inf,student}.ethz.ch