Re: Problem with git filter-branch
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 25, 2008, 20:36 UTC
- Message-ID
- <alpine.DEB.1.00.0810252235040.22125@pacific.mpi-cbg.de.mpi-cbg.de>
- In-Reply-To
- <4902E7D8.6050401@obry.net>
Hi,
On Sat, 25 Oct 2008, Pascal Obry wrote:
Show 10 quoted lines
> Anyway, I used to run the following command: > > $ git filter-branch --tag-name-filter cat --parent-filter "sed -e > 's/^$/-p c96d4da294667de1800687d25340551683153002/'" svn-release_2_6 > > without problem, I now get this: > > Namespace refs/original/ not empty > rm: cannot remove directory > `/home/obry/dev/repositories/git/proj/.git-rewrite': Directory not empty
It is a (maybe ill-conceived) feature. When branches are rewritten, their original versions are stored in the refs/original/ namespace. You can force overwriting with "-f".
I wonder if people would like to have this feature removed; reflogs should be enough.
Thoughts?
Ciao, Dscho