git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Problem with git filter-branch

From
Pascal Obry <pascal@obry.net>
Date
Oct 25, 2008, 09:33 UTC
Message-ID
<4902E7D8.6050401@obry.net>
I'm using Git svn but I do not think this matters.

I'm used to add manually some branches from the Subversion repository. I usually fetch the branch without following the parent then connect the branch to the proper branch point (I really need to do this as the Subversion repository structure is not following the standard layout).

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

The .git-rewrite is empty and when the command return I can do:
$ rmdir .git-rewrite
without problem.
Is this is known issue? Any idea?

Thanks, Pascal.

-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Next: Johannes Schindelin
Message 1 of 5 in “Problem with git filter-branch”
  1. Pascal ObryOct 25, 2008
  2. Johannes SchindelinOct 25, 2008
  3. Mike HommeyOct 25, 2008
  4. Pascal ObryOct 25, 2008
  5. Jeff KingOct 26, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.