On Mon, 2011-10-17 at 09:22 -0500, Jonathan Nieder wrote:
> severity 645636 normal
> tags 645636 + upstream
> quit
> 
> Hi Soeren,
> 
> Soeren Sonnenburg wrote:
> 
> > This upload breaks the behaviour of
> >
> > git branch -M master
> >
> > which is supposed to overwrite the master branch if it exists
> [...]
> > mkdir foo && cd foo
> > git init
> > /usr/bin/git fetch -t git://github.com/shogun-toolbox/shogun.git +master
> > /usr/bin/git reset --hard 72d1bdeb46bf0c63c9d59c940930f2dba1bb6111
> > git branch -M master
> 
> I agree that it would be intuitive for "git branch -M" and "git
> checkout -B" to be willing to modify an already-checked-out branch,
> but I thought they did not do so in 1.7.2.5-2, either.  What am I
> missing?

Well that works in git 1.7.2.X up to version 1.7.6-X but no longer in at
least 1.7.7-2

Sorry about the confusion. I only figured this out because of a suddenly
100% failing buildbot (with the root cause being this git bug).

Soeren
-- 
For the one fact about the future of which we can be certain is that it
will be utterly fantastic. -- Arthur C. Clarke, 1962

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to