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

Re: Using filter-branch to move repo contents in subdirectory

From
Adam Mercer <ramercer@gmail.com>
Date
Aug 11, 2010, 19:59 UTC
Message-ID
<AANLkTi=G=oWaQ4PvjbkfEs2FUXgbKr3s+hWy8azSZsAH@mail.gmail.com>
In-Reply-To
<20100811193214.GB8106@coredump.intra.peff.net>
On Wed, Aug 11, 2010 at 14:32, Jeff King <peff@peff.net> wrote:
Show 5 quoted lines
> It looks like git-update-index will not create $GIT_INDEX_FILE at all if
> you have no actual input lines to --index-info. So perhaps you have some
> commit in your repo that has no actual content in it. Either that or
> for some reason your "ls-files -s | gsed" invocation is producing no
> output.

Yep, that was the problem. I'd been modifying the history with several git filter-branch calls and the initial commit in the repo was empty. Getting rid of this initial empty commit allowed the command to run.

Cheers
Adam
Previous: Jeff King
Message 13 of 13 in “Using filter-branch to move repo contents in subdirectory”
  1. Adam MercerJul 29, 2010
  2. Thomas RastJul 29, 2010
  3. Adam MercerJul 29, 2010
  4. filter-branch tests/docs: avoid \t in sed regexesThomas Rast, Jul 29, 2010
  5. Tomas CarneckyJul 29, 2010
  6. Thomas RastJul 29, 2010
  7. Tomas CarneckyJul 29, 2010
  8. t7005: fix subdirectory-filter testThomas Rast, Jul 29, 2010
  9. Thomas RastJul 29, 2010
  10. Adam MercerAug 9, 2010
  11. Adam MercerAug 11, 2010
  12. Jeff KingAug 11, 2010
  13. Adam MercerAug 11, 2010

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.