From: Morgan Christiansson <git@mog.se>
To: Eric Wong <normalperson@yhbt.net>
Cc: git@vger.kernel.org
Subject: Re: git-svn: File was not found in commit
Date: Mon, 12 Jan 2009 14:45:35 +0100 [thread overview]
Message-ID: <496B497F.30109@mog.se> (raw)
In-Reply-To: <20090112051409.GB14992@dcvr.yhbt.net>
[-- Attachment #1: Type: text/plain, Size: 1494 bytes --]
Eric Wong wrote:
> Eric Wong <normalperson@yhbt.net> wrote:
>
>> 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)...
>
Yes it was. apply_textdelta() is never called for my repo so it has no
effect.
I've attached an updated and simplified version of the testcase you sent
that correctly triggers the bug i reported.
I'm not a native perl coder though so I don't think I would be able to
provide a clean fix for this. But I've traced through enough of the
program to see that the .git directories should be filtered out as early
as possible to mimick the behaviour of git.
get_log() has a callback as it's last argument which gets called once
per commit, nesting this callback in a new callback which filters the
illegal paths out would work.
Also in gs_do_fetch_loop_common() after get_log() and before
do_git_commit() it's possible to filter them.
Regards,
Morgan
[-- Attachment #2: t9133-git-svn-nested-git-repo.sh --]
[-- Type: application/x-sh, Size: 495 bytes --]
next prev parent reply other threads:[~2009-01-12 13:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-09 17:19 git-svn: File was not found in commit Morgan Christiansson
2009-01-11 18:36 ` Morgan Christiansson
2009-01-11 21:55 ` Björn Steinbrink
2009-01-12 0:04 ` Morgan Christiansson
2009-01-12 2:32 ` Eric Wong
2009-01-12 5:14 ` Eric Wong
2009-01-12 13:45 ` Morgan Christiansson [this message]
2009-01-19 2:41 ` Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=496B497F.30109@mog.se \
--to=git@mog.se \
--cc=git@vger.kernel.org \
--cc=normalperson@yhbt.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).