git-svn clone and rebase fails in 1.5.6-preview20080622 (was Re: [msysGit] Re: [ANNOUNCE] GIT 1.5.6)

29 views
Skip to first unread message

Ealden Escañan

unread,
Jun 22, 2008, 1:44:33 PM6/22/08
to proh...@zib.de, msysGit
On Mon, Jun 23, 2008 at 12:54 AM, Steffen Prohaska <proh...@zib.de> wrote:
>
>
> On Jun 19, 2008, at 1:24 AM, Junio C Hamano wrote:
>
>> The latest feature release GIT 1.5.6 is available at the usual
>> places:
>
>
> The msysgit Windows installer is available at
>
> http://code.google.com/p/msysgit/downloads
>
> Steffen
>

Hi Steffen

Thanks for this release. I did a quick test with git-svn and it seems
to fail with clone and rebase. This is with a clean install of
Git-1.5.6-preview20080622.exe on Vista Business 32-bit.

git svn clone https://...
Initialized empty Git repository in d:/Ealden/...
r100 = 725619d88696fb5dcc07500ea1347e7b01c1b93e (git-svn)
Can't locate object method "hash_and_insert_object" via package "Git"
at C:/Program Files/Git/bin/git-svn line 3254.

git svn rebase
Can't locate object method "cat_blob" via package "Git" at C:/Program
Files/Git/bin/git-svn line 3201.

I'm wondering if SVN support is built in by default?

Thanks

--
Ealden Esto E. Escañan
http://blog.ealden.net

Steffen Prohaska

unread,
Jun 22, 2008, 1:51:56 PM6/22/08
to Ealden Escañan, msysGit
Hello Ealden,

On Jun 22, 2008, at 7:44 PM, Ealden Escañan wrote:

> On Mon, Jun 23, 2008 at 12:54 AM, Steffen Prohaska <proh...@zib.de>
> wrote:
>>
>>
>> On Jun 19, 2008, at 1:24 AM, Junio C Hamano wrote:
>>
>>> The latest feature release GIT 1.5.6 is available at the usual
>>> places:
>>
>>
>> The msysgit Windows installer is available at
>>
>> http://code.google.com/p/msysgit/downloads
>>
>> Steffen
>>
>

> Thanks for this release. I did a quick test with git-svn and it seems
> to fail with clone and rebase. This is with a clean install of
> Git-1.5.6-preview20080622.exe on Vista Business 32-bit.
>
> git svn clone https://...
> Initialized empty Git repository in d:/Ealden/...
> r100 = 725619d88696fb5dcc07500ea1347e7b01c1b93e (git-svn)
> Can't locate object method "hash_and_insert_object" via package "Git"
> at C:/Program Files/Git/bin/git-svn line 3254.
>
> git svn rebase
> Can't locate object method "cat_blob" via package "Git" at C:/Program
> Files/Git/bin/git-svn line 3201.
>
> I'm wondering if SVN support is built in by default?

Preliminary git svn support has been added recently. Personally,
however,
I do not use git svn nor do I test it. I only care about the core git
functionality that is needed by a git-only workflow.

I hope that someone else on the list who is actively using git svn will
answer your question.

Steffen

Ealden Escañan

unread,
Jun 22, 2008, 1:59:55 PM6/22/08
to Steffen Prohaska, msysGit
Hi Steffen,

Thanks for the quick reply. I'll try to dig in and see what's wrong,
though I admit that git/C is totally out of my league at this moment.

Thanks again.

Clifford Caoile

unread,
Jun 23, 2008, 11:44:21 AM6/23/08
to eal...@gmail.com, Steffen Prohaska, msysGit
Hi:

On Mon, Jun 23, 2008 at 2:59 AM, Ealden Escañan <eal...@gmail.com> wrote:
> On Mon, Jun 23, 2008 at 1:51 AM, Steffen Prohaska <proh...@zib.de> wrote:
>> On Jun 22, 2008, at 7:44 PM, Ealden Escañan wrote:
>>
>>> Thanks for this release. I did a quick test with git-svn and it seems
>>> to fail with clone and rebase. This is with a clean install of
>>> Git-1.5.6-preview20080622.exe on Vista Business 32-bit.
>>>
>>> git svn clone https://...
>>> Initialized empty Git repository in d:/Ealden/...
>>> r100 = 725619d88696fb5dcc07500ea1347e7b01c1b93e (git-svn)
>>> Can't locate object method "hash_and_insert_object" via package "Git"
>>> at C:/Program Files/Git/bin/git-svn line 3254.
>>>
>>> git svn rebase
>>> Can't locate object method "cat_blob" via package "Git" at C:/Program
>>> Files/Git/bin/git-svn line 3201.
>>

>> I hope that someone else on the list who is actively using git svn will
>> answer your question.
>

> Thanks for the quick reply. I'll try to dig in and see what's wrong,
> though I admit that git/C is totally out of my league at this moment.

How's your git/Perl? ;-)

There are two problems.
1. Git.pm needs to be copied from /msysgit/git/ to the /msysgit
development environment so that the installer picks it up.
/msysgit/lib/perl5/site_perl/Git.pm

2. Even if the updated Git.pm is used, git-svn does not operate
correctly. It dies :-(

>git svn clone file:///i:/git/svn-test/svnrep/ git-side
Initialized empty Git repository in i:/git/svn-test/git-side/.git/
fatal: Unable to add /tmp/UWS9wYv4RH to database
Can't use an undefined value as a symbol reference at
/usr/lib/perl5/site_perl/Git.pm line 421.

I don't know what causes the problem is, but it has something to do
with the speed improvements from already-merged branch "ar/batch-cat"
[1]. Basically, the temp file passed into
Git.pm::hash_and_insert_object() and is not accepted.

As a workaround, you could revert to the last working git-svn which I
think is [2] (2008-05-28).

References:
[1] http://repo.or.cz/w/git.git?h=29313449f726f13ecc562cea9856645eade8e3e9
[2] http://repo.or.cz/w/git.git?h=834836bd3f1c817f93ee69a29c904d3333e635f0

Best regards,
Clifford Caoile

Rusty Burchfield

unread,
Jul 17, 2008, 2:13:57 PM7/17/08
to msysGit
On Jun 22, 10:44 am, "Ealden Escañan" <eal...@gmail.com> wrote:
> git svn clone https://...
> Initialized empty Git repository in d:/Ealden/...
> r100 = 725619d88696fb5dcc07500ea1347e7b01c1b93e (git-svn)
> Can't locate object method "hash_and_insert_object" via package "Git"
> at C:/Program Files/Git/bin/git-svn line 3254.

With Git-1.5.6.1-preview20080701.exe, SVN integration fails for me as
you describe.

However, it works fine with Git-1.5.5-preview20080413.exe. ;-)

~Rusty

Steffen Prohaska

unread,
Jul 18, 2008, 12:55:37 AM7/18/08
to gic...@gmail.com, msysGit

We know this for some time now. Unfortunately, nobody seems to be
working on a solution to the problem.

We are no longer interested in problem descriptions but only in
solutions. Therefore, Dscho and I decided to remove git-svn from the
end-user installer. Personally, I am only interested in the core
commands that are needed for a native git workflow, so I will *not* fix
git-svn. In fact, I never ran git-svn. Apparently, the other core
msysgit developer are also not interested in working on git-svn.
git-svn will still be available if you checkout the msysgit source as
describe on the msysgit homepage (see "If you want to hack ..."). After
git-svn matured, we can include it again in the end-user installer.

Steffen

Reply all
Reply to author
Forward
0 new messages