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

git filter-branch --subdirectory-filter error

From
JWJan Wielemaker <wielemak@science.uva.nl>
Date
Oct 22, 2007, 10:27 UTC
Message-ID
<200710221227.13279.wielemak@science.uva.nl>
Hi,

Finished a big re-shuffle of a big project, while other developers continued. Worked really well. Thanks guys! But now I have two top directories and I want to create two new repositories, each containing one of these directories (because the one holds copyrighted data and we want the other to become public software). So, I happily run

	$ git filter-branch --subdirectory-filter RDF HEAD
Where RDF is an existing directory.  I get:

Rewrite 95807fe01c39d3092e3ac3a98061711323154d77 (1/12)fatal: Not a valid object name 95807fe01c39d3092e3ac3a98061711323154d77:RDF Could not initialize the index

I tried the procedure on some smaller test projects and it all worked just fine. Running git version 1.5.3.4 on SuSE Linux. Also ran "git fsck --full", which completed without any message.

Git show says:
gollem (eculture) 121_> git show 95807fe01c39d3092e3ac3a98061711323154d77 | 
cat
commit 95807fe01c39d3092e3ac3a98061711323154d77
Merge: 76d2935... 58afb98...
Author: Jan Wielemaker <wielemak@science.uva.nl>
Date:   Thu Oct 18 17:32:22 2007 +0200
    Merge branch 'master' of /home/eculture/eculture
Any clue?  
	Thanks --- Jan
Next: Johannes Schindelin
Message 1 of 4 in “git filter-branch --subdirectory-filter error”
  1. Jan WielemakerOct 22, 2007
  2. Johannes SchindelinOct 22, 2007
  3. Jan WielemakerOct 22, 2007
  4. Johannes SchindelinOct 22, 2007

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.