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