git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git svn bug?
@ 2008-10-02  8:50 Ark Xu
  2008-10-02 14:49 ` Björn Steinbrink
  0 siblings, 1 reply; 3+ messages in thread
From: Ark Xu @ 2008-10-02  8:50 UTC (permalink / raw)
  To: git

Hi guys,

   I like git very much so I also use git svn for subversion repo.

   Now I got a tough problem which stopping me for any svn related  
operations. There is a file log4j.xml that is somehow strange because  
when I fetch it, i got the following message:

tms-service/src/test/resources/log4j.xml has mode 120000 but is not a  
link at /opt/local/bin/git-svn line 3230.
M	tms-service/src/test/resources/log4j.xml

   And then, all the operation will lead to :
Checksum mismatch: branches/5.3/tms-service/src/test/resources/ 
log4j.xml 51031cbb0e1a2e878e4a3836cf0baa9b80a037a5
expected: fab6daef9fc355b9342e26047f5d0141
      got: 0e7e9081d608c80d2de0340ba5cd1600

Could anybody help?

regards,
Ark

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git svn bug?
  2008-10-02  8:50 git svn bug? Ark Xu
@ 2008-10-02 14:49 ` Björn Steinbrink
  2008-10-02 14:59   ` Deskin Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Björn Steinbrink @ 2008-10-02 14:49 UTC (permalink / raw)
  To: Ark Xu; +Cc: git

On 2008.10.02 16:50:45 +0800, Ark Xu wrote:
> Hi guys,
>
>   I like git very much so I also use git svn for subversion repo.
>
>   Now I got a tough problem which stopping me for any svn related  
> operations. There is a file log4j.xml that is somehow strange because  
> when I fetch it, i got the following message:
>
> tms-service/src/test/resources/log4j.xml has mode 120000 but is not a  
> link at /opt/local/bin/git-svn line 3230.
> M	tms-service/src/test/resources/log4j.xml
>
>   And then, all the operation will lead to :
> Checksum mismatch: branches/5.3/tms-service/src/test/resources/log4j.xml 
> 51031cbb0e1a2e878e4a3836cf0baa9b80a037a5
> expected: fab6daef9fc355b9342e26047f5d0141
>      got: 0e7e9081d608c80d2de0340ba5cd1600
>
> Could anybody help?

Which git version? And is your /tmp large enough to store that file?

Björn

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git svn bug?
  2008-10-02 14:49 ` Björn Steinbrink
@ 2008-10-02 14:59   ` Deskin Miller
  0 siblings, 0 replies; 3+ messages in thread
From: Deskin Miller @ 2008-10-02 14:59 UTC (permalink / raw)
  To: Björn Steinbrink; +Cc: Ark Xu, git

On Thu, Oct 2, 2008 at 10:49 AM, Björn Steinbrink <B.Steinbrink@gmx.de> wrote:
> On 2008.10.02 16:50:45 +0800, Ark Xu wrote:
>>   Now I got a tough problem which stopping me for any svn related
>> operations. There is a file log4j.xml that is somehow strange because
>> when I fetch it, i got the following message:
>>
>> tms-service/src/test/resources/log4j.xml has mode 120000 but is not a
>> link at /opt/local/bin/git-svn line 3230.
>> M     tms-service/src/test/resources/log4j.xml
>>
>>   And then, all the operation will lead to :
>> Checksum mismatch: branches/5.3/tms-service/src/test/resources/log4j.xml
>> 51031cbb0e1a2e878e4a3836cf0baa9b80a037a5
>> expected: fab6daef9fc355b9342e26047f5d0141
>>      got: 0e7e9081d608c80d2de0340ba5cd1600
>
> Which git version? And is your /tmp large enough to store that file?

I've had issues similar to this when I did Ctrl+C during git svn
fetch.  Prior to the issue you've pointed out popping up, though, I
could compare the repo against another git svn fetch which was not
interrupted, and the commits would diverge at some point.  When I
looked into the commit which diverged, the commit object was present
in my interrupted repo, but the diff was empty, while it was non-empty
in the other repo.

It seems there's an issue with git svn fetch atomically fetching and
updating its refs.  I've not had time to investigate further, but I
certainly want to.

In the meantime, I worked around it on initial fetch from a big svn
repository by using git svn fetch -r1:n , and increasing n in
increments, so it could run to completion without me interrupting it.

This was seen using git 1.5.4.3 from Ubuntu.

Deskin Miller

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-02 15:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-02  8:50 git svn bug? Ark Xu
2008-10-02 14:49 ` Björn Steinbrink
2008-10-02 14:59   ` Deskin Miller

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).