Re: git-svn: File was not found in commit
- From
- Eric Wong <normalperson@yhbt.net>
- Date
- Jan 12, 2009, 05:14 UTC
- Message-ID
- <20090112051409.GB14992@dcvr.yhbt.net>
- In-Reply-To
- <20090112023211.GA21462@dcvr.yhbt.net>
Eric Wong <normalperson@yhbt.net> wrote:
Show 12 quoted lines
> Morgan Christiansson <git@mog.se> wrote: > > The "Ignoring path" message appears to be coming from git which is > > refusing to commit the .git directory. Which leads to git-svn being > > unaware of the files being ignored and giving an error when it can't > > find them. > > > I'm personally fine with these files being ignored by git, but git-svn > > needs to be aware that they are not added to the repository. > > Hi Morgan, > Can you try the following rough patch and see it it fixes things > for you? Thanks!
Actually, I think this patch is broken (my quickly put together test case was insufficient)...
Show 18 quoted lines
> From 559f4b673592f364e9773f2ba65caf09b138521b Mon Sep 17 00:00:00 2001 > From: Eric Wong <normalperson@yhbt.net> > Date: Sun, 11 Jan 2009 18:23:38 -0800 > Subject: [PATCH/RFC] git-svn: avoid importing nested repos > > Some SVN repositories contain .git repositories within them > (hopefully accidentally checked in). Since git refuses to > check in ".git" repositories, this can be a problem when > fetching updates from SVN. > > This seems to repull the entire blob from SVN everytime a user > changes something inside the ".git" directory on the SVN side, > but hopefully this will be a rare case and the SVN users will > correct the error quickly. > > The test could probably be expanded to be more thorough... > > Signed-off-by: Eric Wong <normalperson@yhbt.net>