Re: BUG when trying to delete symbolic refs

2012-10-18 Thread René Scharfe
Am 16.10.2012 18:09, schrieb Junio C Hamano: > Having said all that, I think your patch is going in the right > direction. If somebody had a symbolic ref in refs/heads/, the > removal should remove it, not the pointee, which may not even > exist. Does "branch -d sym" work correctly with your patc

Re: BUG when trying to delete symbolic refs

2012-10-16 Thread Junio C Hamano
René Scharfe writes: > Am 15.10.2012 10:50, schrieb Johan Herland: >> Basically, there is a "master" branch, and an "alias" symref to >> "master". When we naively try to delete the symref with "git branch -d >> alias", it ends up: >> >> - NOT deleting the "alias" symref >> - DELETING the "ma

Re: BUG when trying to delete symbolic refs

2012-10-16 Thread René Scharfe
Am 15.10.2012 10:50, schrieb Johan Herland: > Basically, there is a "master" branch, and an "alias" symref to > "master". When we naively try to delete the symref with "git branch -d > alias", it ends up: > > - NOT deleting the "alias" symref > - DELETING the "master" loose ref > - NOT delet

BUG when trying to delete symbolic refs

2012-10-15 Thread Johan Herland
Hi, At $dayjob we renamed a branch, and for a grace period, we kept the old name as a symref/alias to the new name, to give our users a window for switching. This has worked well, until we tried to remove the symref/alias. The following script demonstrates what we discovered: $ git --version gi