{"thread":{"id":"15744","subject":"git svn bug?","startedAt":"2008-10-02T08:50:45Z","lastAt":"2008-10-02T14:59:44Z","messageCount":3,"participants":["Ark Xu","Björn Steinbrink","Deskin Miller"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"92119","messageId":"36C9BCCC-875A-4C65-98E2-0AD486FF8F61@gmail.com","threadId":"15744","inReplyTo":null,"subject":"git svn bug?","fromName":"Ark Xu","fromEmail":"ark.work@gmail.com","sentAt":"2008-10-02T08:50:45Z","receivedAt":"2008-10-02T08:50:45Z","isPatch":false,"sender":{"key":"ark.work@gmail.com","avatar":null},"body":"Hi guys,\n\n   I like git very much so I also use git svn for subversion repo.\n\n   Now I got a tough problem which stopping me for any svn related  \noperations. There is a file log4j.xml that is somehow strange because  \nwhen I fetch it, i got the following message:\n\ntms-service/src/test/resources/log4j.xml has mode 120000 but is not a  \nlink at /opt/local/bin/git-svn line 3230.\nM\ttms-service/src/test/resources/log4j.xml\n\n   And then, all the operation will lead to :\nChecksum mismatch: branches/5.3/tms-service/src/test/resources/ \nlog4j.xml 51031cbb0e1a2e878e4a3836cf0baa9b80a037a5\nexpected: fab6daef9fc355b9342e26047f5d0141\n      got: 0e7e9081d608c80d2de0340ba5cd1600\n\nCould anybody help?\n\nregards,\nArk\n"},{"id":"92168","messageId":"20081002144916.GA3644@atjola.homenet","threadId":"15744","inReplyTo":"36C9BCCC-875A-4C65-98E2-0AD486FF8F61@gmail.com","subject":"Re: git svn bug?","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2008-10-02T14:49:16Z","receivedAt":"2008-10-02T14:49:16Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2008.10.02 16:50:45 +0800, Ark Xu wrote:\n> Hi guys,\n>\n>   I like git very much so I also use git svn for subversion repo.\n>\n>   Now I got a tough problem which stopping me for any svn related  \n> operations. There is a file log4j.xml that is somehow strange because  \n> when I fetch it, i got the following message:\n>\n> tms-service/src/test/resources/log4j.xml has mode 120000 but is not a  \n> link at /opt/local/bin/git-svn line 3230.\n> M\ttms-service/src/test/resources/log4j.xml\n>\n>   And then, all the operation will lead to :\n> Checksum mismatch: branches/5.3/tms-service/src/test/resources/log4j.xml \n> 51031cbb0e1a2e878e4a3836cf0baa9b80a037a5\n> expected: fab6daef9fc355b9342e26047f5d0141\n>      got: 0e7e9081d608c80d2de0340ba5cd1600\n>\n> Could anybody help?\n\nWhich git version? And is your /tmp large enough to store that file?\n\nBjörn\n"},{"id":"92174","messageId":"86d4c5e00810020759n6f64f0acx575a1dede5d7aba8@mail.gmail.com","threadId":"15744","inReplyTo":"20081002144916.GA3644@atjola.homenet","subject":"Re: git svn bug?","fromName":"Deskin Miller","fromEmail":"deskinm@umich.edu","sentAt":"2008-10-02T14:59:44Z","receivedAt":"2008-10-02T14:59:44Z","isPatch":false,"sender":{"key":"deskinm@umich.edu","avatar":"https://gravatar.com/avatar/d340a0e612cdf0a79535c71863c0b4c535e9aba63b42032226ae903e638b64f9?d=mp&s=160"},"body":"On Thu, Oct 2, 2008 at 10:49 AM, Björn Steinbrink <B.Steinbrink@gmx.de> wrote:\n> On 2008.10.02 16:50:45 +0800, Ark Xu wrote:\n>>   Now I got a tough problem which stopping me for any svn related\n>> operations. There is a file log4j.xml that is somehow strange because\n>> when I fetch it, i got the following message:\n>>\n>> tms-service/src/test/resources/log4j.xml has mode 120000 but is not a\n>> link at /opt/local/bin/git-svn line 3230.\n>> M     tms-service/src/test/resources/log4j.xml\n>>\n>>   And then, all the operation will lead to :\n>> Checksum mismatch: branches/5.3/tms-service/src/test/resources/log4j.xml\n>> 51031cbb0e1a2e878e4a3836cf0baa9b80a037a5\n>> expected: fab6daef9fc355b9342e26047f5d0141\n>>      got: 0e7e9081d608c80d2de0340ba5cd1600\n>\n> Which git version? And is your /tmp large enough to store that file?\n\nI've had issues similar to this when I did Ctrl+C during git svn\nfetch.  Prior to the issue you've pointed out popping up, though, I\ncould compare the repo against another git svn fetch which was not\ninterrupted, and the commits would diverge at some point.  When I\nlooked into the commit which diverged, the commit object was present\nin my interrupted repo, but the diff was empty, while it was non-empty\nin the other repo.\n\nIt seems there's an issue with git svn fetch atomically fetching and\nupdating its refs.  I've not had time to investigate further, but I\ncertainly want to.\n\nIn the meantime, I worked around it on initial fetch from a big svn\nrepository by using git svn fetch -r1:n , and increasing n in\nincrements, so it could run to completion without me interrupting it.\n\nThis was seen using git 1.5.4.3 from Ubuntu.\n\nDeskin Miller\n"}]}