{"thread":{"id":"19122","subject":"git svn errors out with git-cat-file \"usage\" message","startedAt":"2009-04-29T15:11:15Z","lastAt":"2009-04-30T16:49:30Z","messageCount":17,"participants":["Martin Langhoff","Avery Pennarun","Michael J Gruber","Andreas Ericsson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"112640","messageId":"46a038f90904290811p33332bd5h1d397734907ba9c2@mail.gmail.com","threadId":"19122","inReplyTo":null,"subject":"git svn errors out with git-cat-file \"usage\" message","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2009-04-29T15:11:15Z","receivedAt":"2009-04-29T15:11:15Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"There is very small public SVN repo that I'm trying to clone with SVN,\nand seems to trigger a big in git-svn.\n\nSteps to repro, and error message:\n\n$  git svn clone -T trunk --ignore-paths releases\nhttp://paintweb.googlecode.com/svn paintweb.git\nr3 = 30548c9192aefcde23337f70542ab59e193a1b9e (trunk)\nusage: git-cat-file [-t|-s|-e|-p|<type>] <sha1>\nfatal: unable to run 'git-svn'\n$ git version\ngit version 1.6.2.4.10.g2254d <== this is maint as of right now\n\nThe same problem exists with master as of right now (v1.6.3-rc3-12-gb79376c)\n\nOn a different box it succeeded -- this was a Fedora 9 box, with git\nfrom rpms. I did have to drop the '--ignore-paths' paramater though:\n$ git --version\ngit version 1.6.0.6\n\nany hints as to what could be wrong? The repository is small and\npretty vanilla afaics...\n\ncheers,\n\n\n\nmartin\n-- \n martin.langhoff@gmail.com\n martin@laptop.org -- School Server Architect\n - ask interesting questions\n - don't get distracted with shiny stuff  - working code first\n - http://wiki.laptop.org/go/User:Martinlanghoff\n"},{"id":"112656","messageId":"32541b130904291150k75a0433fnb29ea59f654a17f7@mail.gmail.com","threadId":"19122","inReplyTo":"46a038f90904290811p33332bd5h1d397734907ba9c2@mail.gmail.com","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2009-04-29T18:50:51Z","receivedAt":"2009-04-29T18:50:51Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On Wed, Apr 29, 2009 at 11:11 AM, Martin Langhoff\n<martin.langhoff@gmail.com> wrote:\n> Steps to repro, and error message:\n>\n> $  git svn clone -T trunk --ignore-paths releases\n> http://paintweb.googlecode.com/svn paintweb.git\n> r3 = 30548c9192aefcde23337f70542ab59e193a1b9e (trunk)\n> usage: git-cat-file [-t|-s|-e|-p|<type>] <sha1>\n> fatal: unable to run 'git-svn'\n> $ git version\n> git version 1.6.2.4.10.g2254d <== this is maint as of right now\n>\n> The same problem exists with master as of right now (v1.6.3-rc3-12-gb79376c)\n\nI just tried this (commit 2254d) and was unable to reproduce; it\nworked fine for me (Debian etch).\n\n  git svn clone -T trunk --ignore-paths releases\nhttp://paintweb.googlecode.com/svn paintweb.git\n  ...\n  r6 = 8561205fe08e0bcefb592710f4e34db91f3099df (trunk)\n  Checked out HEAD:\n    http://paintweb.googlecode.com/svn/trunk r6\n\nMaybe you can try 'git bisect' to narrow it down.\n\nHave fun,\n\nAvery\n"},{"id":"112686","messageId":"49F8B7D1.2090903@drmicha.warpmail.net","threadId":"19122","inReplyTo":"32541b130904291150k75a0433fnb29ea59f654a17f7@mail.gmail.com","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-04-29T20:25:53Z","receivedAt":"2009-04-29T20:25:53Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Avery Pennarun venit, vidit, dixit 29.04.2009 20:50:\n> On Wed, Apr 29, 2009 at 11:11 AM, Martin Langhoff\n> <martin.langhoff@gmail.com> wrote:\n>> Steps to repro, and error message:\n>>\n>> $  git svn clone -T trunk --ignore-paths releases\n>> http://paintweb.googlecode.com/svn paintweb.git\n>> r3 = 30548c9192aefcde23337f70542ab59e193a1b9e (trunk)\n>> usage: git-cat-file [-t|-s|-e|-p|<type>] <sha1>\n>> fatal: unable to run 'git-svn'\n>> $ git version\n>> git version 1.6.2.4.10.g2254d <== this is maint as of right now\n>>\n>> The same problem exists with master as of right now (v1.6.3-rc3-12-gb79376c)\n> \n> I just tried this (commit 2254d) and was unable to reproduce; it\n> worked fine for me (Debian etch).\n> \n>   git svn clone -T trunk --ignore-paths releases\n> http://paintweb.googlecode.com/svn paintweb.git\n>   ...\n>   r6 = 8561205fe08e0bcefb592710f4e34db91f3099df (trunk)\n>   Checked out HEAD:\n>     http://paintweb.googlecode.com/svn/trunk r6\n> \n> Maybe you can try 'git bisect' to narrow it down.\n\nWorks here as well, with git version 1.6.3.rc3 and svn, Version 1.5.4\n(r33841) on Fedora 10.\n\nGiven the versions that fail for Martin and work for Avery and me I\nwould think it's not a git issue but rather a matter of the svn version\nresp. the svn perl bindingds.\n\nMichael\n"},{"id":"112689","messageId":"46a038f90904291347i2ed158aaya7505e1bd11cd392@mail.gmail.com","threadId":"19122","inReplyTo":"49F8B7D1.2090903@drmicha.warpmail.net","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2009-04-29T20:47:00Z","receivedAt":"2009-04-29T20:47:00Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"On Wed, Apr 29, 2009 at 10:25 PM, Michael J Gruber\n<git@drmicha.warpmail.net> wrote:\n> Given the versions that fail for Martin and work for Avery and me I\n> would think it's not a git issue but rather a matter of the svn version\n> resp. the svn perl bindingds.\n\nGood point. The machine where this is failing is an Ubuntu Intrepid box...\n\n$ dpkg -l libsvn* | grep '^i'\nii  libsvn-perl                                1.5.1dfsg1-1ubuntu2\n                Perl bindings for Subversion\nii  libsvn1                                    1.5.1dfsg1-1ubuntu2\n                Shared libraries used by Subversion\nii  libsvncpp1                                 0.9.6-1\n                Subversion C++ shared library\ndpkg -l subversion* | grep '^i'\nii  subversion                                 1.5.1dfsg1-1ubuntu2\n                Advanced version control system\n\nOn the F9 box where things succeed...\n\n$rpm -qa subversion*\nsubversion-perl-1.4.6-7.i386\nsubversion-1.4.6-7.i386\n$ rpm -qa *svn*\ngit-svn-1.6.0.6-3.fc9.i386\n\nWhat are the versions in that F-10 box? Could it be an incompatibility\nwith svn-1.5.x?\n\ncheers,\n\n\n\nm\n-- \n martin.langhoff@gmail.com\n martin@laptop.org -- School Server Architect\n - ask interesting questions\n - don't get distracted with shiny stuff  - working code first\n - http://wiki.laptop.org/go/User:Martinlanghoff\n"},{"id":"112691","messageId":"49F8C127.4000400@drmicha.warpmail.net","threadId":"19122","inReplyTo":"46a038f90904291347i2ed158aaya7505e1bd11cd392@mail.gmail.com","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-04-29T21:05:43Z","receivedAt":"2009-04-29T21:05:43Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Martin Langhoff venit, vidit, dixit 29.04.2009 22:47:\n> On Wed, Apr 29, 2009 at 10:25 PM, Michael J Gruber\n> <git@drmicha.warpmail.net> wrote:\n>> Given the versions that fail for Martin and work for Avery and me I\n>> would think it's not a git issue but rather a matter of the svn version\n>> resp. the svn perl bindingds.\n> \n> Good point. The machine where this is failing is an Ubuntu Intrepid box...\n> \n> $ dpkg -l libsvn* | grep '^i'\n> ii  libsvn-perl                                1.5.1dfsg1-1ubuntu2\n>                 Perl bindings for Subversion\n> ii  libsvn1                                    1.5.1dfsg1-1ubuntu2\n>                 Shared libraries used by Subversion\n> ii  libsvncpp1                                 0.9.6-1\n>                 Subversion C++ shared library\n> dpkg -l subversion* | grep '^i'\n> ii  subversion                                 1.5.1dfsg1-1ubuntu2\n>                 Advanced version control system\n> \n> On the F9 box where things succeed...\n> \n> $rpm -qa subversion*\n> subversion-perl-1.4.6-7.i386\n> subversion-1.4.6-7.i386\n> $ rpm -qa *svn*\n> git-svn-1.6.0.6-3.fc9.i386\n> \n> What are the versions in that F-10 box? Could it be an incompatibility\n> with svn-1.5.x?\n\n1.5.4\n\nBut I just re-read your original report, and there's some inconsistency:\n\ngit-svn triggers cat-file's usage message which says \"git-cat-file ...\".\nThe dash indicates that it is a git cat-file before v1.6.0.1-13-g34baebc\n(where the dash was removed), so it's definitely not the current maint\nyou think you are using.\n\nDo you have older ubuntu git packages installed in $PATH?\n\nMichael\n"},{"id":"112738","messageId":"46a038f90904300018u7101943blef084dc907a04c8d@mail.gmail.com","threadId":"19122","inReplyTo":"49F8C127.4000400@drmicha.warpmail.net","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2009-04-30T07:18:08Z","receivedAt":"2009-04-30T07:18:08Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"On Wed, Apr 29, 2009 at 11:05 PM, Michael J Gruber\n<git@drmicha.warpmail.net> wrote:\n> But I just re-read your original report, and there's some inconsistency:\n>\n> git-svn triggers cat-file's usage message which says \"git-cat-file ...\".\n> The dash indicates that it is a git cat-file before v1.6.0.1-13-g34baebc\n> (where the dash was removed), so it's definitely not the current maint\n> you think you are using.\n>\n> Do you have older ubuntu git packages installed in $PATH?\n\nBingo! Yes,\n\n~$ which git-cat-file\n/usr/bin/git-cat-file\n~$ /usr/bin/git version\ngit version 1.5.6.3\n\nnow that's really weird. git from ~/bin is using git-cat-file from\n/usr/bin instead of ~/libexec/git-core ... how is the libexec path set\nin the PATH during the execution of the script?\n\nthe funny thing is that Ubuntu wants to have git-core in place if\nyou're rebuilding kernel packages. I don't need to rebuild my kernel\nanymore but I am sure this is an issue for others. What's the trick?\nAdd the libexec/git-core to the PATH before /usr/bin? Should git\ninternally append libexec/git-core earlier in the search path?\n\ncheers,\n\n\nm\n-- \n martin.langhoff@gmail.com\n martin@laptop.org -- School Server Architect\n - ask interesting questions\n - don't get distracted with shiny stuff  - working code first\n - http://wiki.laptop.org/go/User:Martinlanghoff\n"},{"id":"112742","messageId":"49F958E0.8040808@drmicha.warpmail.net","threadId":"19122","inReplyTo":"46a038f90904300018u7101943blef084dc907a04c8d@mail.gmail.com","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-04-30T07:53:04Z","receivedAt":"2009-04-30T07:53:04Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Martin Langhoff venit, vidit, dixit 30.04.2009 09:18:\n> On Wed, Apr 29, 2009 at 11:05 PM, Michael J Gruber\n> <git@drmicha.warpmail.net> wrote:\n>> But I just re-read your original report, and there's some inconsistency:\n>>\n>> git-svn triggers cat-file's usage message which says \"git-cat-file ...\".\n>> The dash indicates that it is a git cat-file before v1.6.0.1-13-g34baebc\n>> (where the dash was removed), so it's definitely not the current maint\n>> you think you are using.\n>>\n>> Do you have older ubuntu git packages installed in $PATH?\n> \n> Bingo! Yes,\n> \n> ~$ which git-cat-file\n> /usr/bin/git-cat-file\n> ~$ /usr/bin/git version\n> git version 1.5.6.3\n> \n> now that's really weird. git from ~/bin is using git-cat-file from\n> /usr/bin instead of ~/libexec/git-core ... how is the libexec path set\n> in the PATH during the execution of the script?\n> \n> the funny thing is that Ubuntu wants to have git-core in place if\n> you're rebuilding kernel packages. I don't need to rebuild my kernel\n> anymore but I am sure this is an issue for others. What's the trick?\n> Add the libexec/git-core to the PATH before /usr/bin? Should git\n> internally append libexec/git-core earlier in the search path?\n> \n\nI'm pretty sure that git will use the correct version, i.e. \"git\ncat-file -x\" will give you the usage line for the recent version. Or\ndoes \"env|grep GIT\" return anything which could misdirect git?\n\nI think the question is more what git-svn does. It uses git's perl\nbindings, and it may very well be the case that your current, locally\ninstalled git uses the current git-svn which in turn picks up the wrong\nGit.pm.\n\nAs far as I can see, the last explicit usage of \"git-cat-file\" (with\ndash) was removed from git-svn.perl in v1.5.5.1-136-gffe256f which\nequals v1.5.6-rc0~8^2~2 which should precede your older git, unless\nDebian/Ubuntu did something funny. (Fedora followed the out-of-bin\ndecision for git-* only with a delay, e.g.) That's why I suspected a\nperl path issue. But I'm not a perl guy, so I'm sorry I can't help\nfurther than suggesting to uninstall the old git (deb version of\n--no-deps) and check if that's helping.\n\nMichael\n"},{"id":"112745","messageId":"49F960A5.5090801@op5.se","threadId":"19122","inReplyTo":"46a038f90904300018u7101943blef084dc907a04c8d@mail.gmail.com","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2009-04-30T08:26:13Z","receivedAt":"2009-04-30T08:26:13Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Martin Langhoff wrote:\n> On Wed, Apr 29, 2009 at 11:05 PM, Michael J Gruber\n> <git@drmicha.warpmail.net> wrote:\n>> But I just re-read your original report, and there's some inconsistency:\n>>\n>> git-svn triggers cat-file's usage message which says \"git-cat-file ...\".\n>> The dash indicates that it is a git cat-file before v1.6.0.1-13-g34baebc\n>> (where the dash was removed), so it's definitely not the current maint\n>> you think you are using.\n>>\n>> Do you have older ubuntu git packages installed in $PATH?\n> \n> Bingo! Yes,\n> \n> ~$ which git-cat-file\n> /usr/bin/git-cat-file\n> ~$ /usr/bin/git version\n> git version 1.5.6.3\n> \n> now that's really weird. git from ~/bin is using git-cat-file from\n> /usr/bin instead of ~/libexec/git-core ... how is the libexec path set\n> in the PATH during the execution of the script?\n> \n\nIf you're executing \"git-svn\", the \"git-svn\" found first in your $PATH\nwill be used. Same with \"git\" really, so if you have a $PATH like this:\n\n  PATH=/usr/bin:$(HOME)/bin\n\nyou will always use the git from /usr/bin (naturally).\n\n> the funny thing is that Ubuntu wants to have git-core in place if\n> you're rebuilding kernel packages. I don't need to rebuild my kernel\n> anymore but I am sure this is an issue for others. What's the trick?\n> Add the libexec/git-core to the PATH before /usr/bin? Should git\n> internally append libexec/git-core earlier in the search path?\n> \n\nThe possibly easiest solution to your particular problem is to just\nremove the files installed by the git-core package and then log out\nand back in (to clear any persistent shell cache). You may need to\nmark git-core as not updateable in your apt config.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n\nRegister now for Nordic Meet on Nagios, June 3-4 in Stockholm\n http://nordicmeetonnagios.op5.org/\n\nConsidering the successes of the wars on alcohol, poverty, drugs and\nterror, I think we should give some serious thought to declaring war\non peace.\n"},{"id":"112748","messageId":"49F9655B.6070302@drmicha.warpmail.net","threadId":"19122","inReplyTo":"49F960A5.5090801@op5.se","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-04-30T08:46:19Z","receivedAt":"2009-04-30T08:46:19Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Andreas Ericsson venit, vidit, dixit 30.04.2009 10:26:\n> Martin Langhoff wrote:\n>> On Wed, Apr 29, 2009 at 11:05 PM, Michael J Gruber\n>> <git@drmicha.warpmail.net> wrote:\n>>> But I just re-read your original report, and there's some inconsistency:\n>>>\n>>> git-svn triggers cat-file's usage message which says \"git-cat-file ...\".\n>>> The dash indicates that it is a git cat-file before v1.6.0.1-13-g34baebc\n>>> (where the dash was removed), so it's definitely not the current maint\n>>> you think you are using.\n>>>\n>>> Do you have older ubuntu git packages installed in $PATH?\n>>\n>> Bingo! Yes,\n>>\n>> ~$ which git-cat-file\n>> /usr/bin/git-cat-file\n>> ~$ /usr/bin/git version\n>> git version 1.5.6.3\n>>\n>> now that's really weird. git from ~/bin is using git-cat-file from\n>> /usr/bin instead of ~/libexec/git-core ... how is the libexec path set\n>> in the PATH during the execution of the script?\n>>\n> \n> If you're executing \"git-svn\", the \"git-svn\" found first in your $PATH\n> will be used. Same with \"git\" really, so if you have a $PATH like this:\n> \n>   PATH=/usr/bin:$(HOME)/bin\n> \n> you will always use the git from /usr/bin (naturally).\n\nBut he wrote he executed \"git svn\", and \"git --version\" showed the more\ncurrent version. So it can't be a PATH issue. It may be PERL5LIB, though.\n\n> \n>> the funny thing is that Ubuntu wants to have git-core in place if\n>> you're rebuilding kernel packages. I don't need to rebuild my kernel\n>> anymore but I am sure this is an issue for others. What's the trick?\n>> Add the libexec/git-core to the PATH before /usr/bin? Should git\n>> internally append libexec/git-core earlier in the search path?\n>>\n> \n> The possibly easiest solution to your particular problem is to just\n> remove the files installed by the git-core package and then log out\n> and back in (to clear any persistent shell cache). You may need to\n> mark git-core as not updateable in your apt config.\n> \n"},{"id":"112749","messageId":"46a038f90904300153v22aa3e9fo407ff5084b58b5fc@mail.gmail.com","threadId":"19122","inReplyTo":"46a038f90904300018u7101943blef084dc907a04c8d@mail.gmail.com","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2009-04-30T08:53:08Z","receivedAt":"2009-04-30T08:53:08Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"On Thu, Apr 30, 2009 at 9:18 AM, Martin Langhoff\n<martin.langhoff@gmail.com> wrote:\n> Bingo! Yes,\n>\n> ~$ which git-cat-file\n> /usr/bin/git-cat-file\n> ~$ /usr/bin/git version\n> git version 1.5.6.3\n\nActually, after removing the git-core package and all its dependencies...\n\n# same git version that succeeds on Fedora 9, here says:\n$ git svn  clone  -T trunk  http://paintweb.googlecode.com/svn paintweb.git\nusage: git-cat-file [-t|-s|-e|-p|<type>] <sha1>\nerror closing pipe: Broken pipe at\n/home/martin/libexec/git-core/git-svn line 3252\ncat-file --batch: command returned error: 129\n\nerror closing pipe: Bad file descriptor at\n/home/martin/libexec/git-core/git-svn line 0\nerror closing pipe: Bad file descriptor at\n/home/martin/libexec/git-core/git-svn line 0\n$ git version\ngit version 1.6.0.6\n\n# a newer git says...\n$ git svn clone -T trunk --ignore-paths releases\nhttp://paintweb.googlecode.com/svn paintweb.git\nusage: git-cat-file [-t|-s|-e|-p|<type>] <sha1>\nUnexpected result returned from git cat-file at\n/home/martin/libexec/git-core/git-svn line 3526\nFailed to read object 4b90eef95225bb9e34000e050d0cac8b84ab36f6 at\n/home/martin/libexec/git-core/git-svn line 3527.\n\n$ git version\ngit version 1.6.2.4.10.g2254d\n\n... the plot thickens...\n\nThere is nothing in my env that would confuse git -- and my PATH has\n~/bin as the first entry, trumping everything else. So perhaps the\ndebian package had nothing to do with this?\n\nPerl SVN bindings? How do I debug that side of things?\n\ncheers,\n\n\n\nm\n-- \n martin.langhoff@gmail.com\n martin@laptop.org -- School Server Architect\n - ask interesting questions\n - don't get distracted with shiny stuff  - working code first\n - http://wiki.laptop.org/go/User:Martinlanghoff\n"},{"id":"112754","messageId":"49F96F2A.5020108@drmicha.warpmail.net","threadId":"19122","inReplyTo":"46a038f90904300153v22aa3e9fo407ff5084b58b5fc@mail.gmail.com","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-04-30T09:28:10Z","receivedAt":"2009-04-30T09:28:10Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Martin Langhoff venit, vidit, dixit 30.04.2009 10:53:\n> On Thu, Apr 30, 2009 at 9:18 AM, Martin Langhoff\n> <martin.langhoff@gmail.com> wrote:\n>> Bingo! Yes,\n>>\n>> ~$ which git-cat-file\n>> /usr/bin/git-cat-file\n>> ~$ /usr/bin/git version\n>> git version 1.5.6.3\n> \n> Actually, after removing the git-core package and all its dependencies...\n> \n> # same git version that succeeds on Fedora 9, here says:\n> $ git svn  clone  -T trunk  http://paintweb.googlecode.com/svn paintweb.git\n> usage: git-cat-file [-t|-s|-e|-p|<type>] <sha1>\n> error closing pipe: Broken pipe at\n> /home/martin/libexec/git-core/git-svn line 3252\n> cat-file --batch: command returned error: 129\n> \n> error closing pipe: Bad file descriptor at\n> /home/martin/libexec/git-core/git-svn line 0\n> error closing pipe: Bad file descriptor at\n> /home/martin/libexec/git-core/git-svn line 0\n> $ git version\n> git version 1.6.0.6\n> \n> # a newer git says...\n> $ git svn clone -T trunk --ignore-paths releases\n> http://paintweb.googlecode.com/svn paintweb.git\n> usage: git-cat-file [-t|-s|-e|-p|<type>] <sha1>\n\nThat one is definitely not from a newer git. What do you do in between\nthe two steps above and below, where the same command \"git version\"\nreturns different results? You must have some older parts lying around\nsomewhere, whether they get picked up by on old or new git svn or Git.pm.\n\nWhat do the following say:\n\nwhich git-cat-file\nwhich git\ngit --exec-path\n#desperate last attemtp\nfind / -name git-cat-file | xargs -n 1 sh -c\n\n> Unexpected result returned from git cat-file at\n> /home/martin/libexec/git-core/git-svn line 3526\n> Failed to read object 4b90eef95225bb9e34000e050d0cac8b84ab36f6 at\n> /home/martin/libexec/git-core/git-svn line 3527.\n> \n> $ git version\n> git version 1.6.2.4.10.g2254d\n> \n> ... the plot thickens...\n> \n> There is nothing in my env that would confuse git -- and my PATH has\n> ~/bin as the first entry, trumping everything else. So perhaps the\n> debian package had nothing to do with this?\n> \n> Perl SVN bindings? How do I debug that side of things?\n> \n> cheers,\n> \n> \n> \n> m\n"},{"id":"112755","messageId":"46a038f90904300242u38dc5968h2c4b551af463ba8b@mail.gmail.com","threadId":"19122","inReplyTo":"49F96F2A.5020108@drmicha.warpmail.net","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2009-04-30T09:42:31Z","receivedAt":"2009-04-30T09:42:31Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"On Thu, Apr 30, 2009 at 11:28 AM, Michael J Gruber\n<git@drmicha.warpmail.net> wrote:\n> That one is definitely not from a newer git. What do you do in between\n> the two steps above and below, where the same command \"git version\"\n> returns different results? You must have some older parts lying around\n> somewhere, whether they get picked up by on old or new git svn or Git.pm.\n\nI just do 'git checkout <version I want> && make && make install'.\n\nSee\n$ which git-cat-file\n$ which git\n/home/martin/bin/git\n$ git --exec-path\n/home/martin/libexec/git-core\n\nI can't see anything suspicious in my install.\n\n$ find / -name git-cat-file 2>/dev/null\n/home/martin/libexec/git-core/git-cat-file\n/home/martin/src/git/git-cat-file\n/usr/share/doc/mercurial/examples/git-viz/git-cat-file\n\ncheers,\n\n\n\n\nm\n-- \n martin.langhoff@gmail.com\n martin@laptop.org -- School Server Architect\n - ask interesting questions\n - don't get distracted with shiny stuff  - working code first\n - http://wiki.laptop.org/go/User:Martinlanghoff\n"},{"id":"112765","messageId":"32541b130904300741p325012b7g28dabbd33576ceae@mail.gmail.com","threadId":"19122","inReplyTo":"46a038f90904300153v22aa3e9fo407ff5084b58b5fc@mail.gmail.com","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2009-04-30T14:41:49Z","receivedAt":"2009-04-30T14:41:49Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On Thu, Apr 30, 2009 at 4:53 AM, Martin Langhoff\n<martin.langhoff@gmail.com> wrote:\n> Actually, after removing the git-core package and all its dependencies...\n>\n> # same git version that succeeds on Fedora 9, here says:\n> $ git svn  clone  -T trunk  http://paintweb.googlecode.com/svn paintweb.git\n> usage: git-cat-file [-t|-s|-e|-p|<type>] <sha1>\n> error closing pipe: Broken pipe at\n> /home/martin/libexec/git-core/git-svn line 3252\n> cat-file --batch: command returned error: 129\n\nTry this:\n\n  strace -fF git svn  clone  -T trunk\nhttp://paintweb.googlecode.com/svn paintweb.git 2>&1 | egrep -i\n'git.pm|git-svn'\n\nIf you wade through the output, it should tell you which git.pm and\ngit-svn you're *really* getting.\n\nAvery\n"},{"id":"112768","messageId":"46a038f90904300803h555f02b3n76d03c93d99f7506@mail.gmail.com","threadId":"19122","inReplyTo":"32541b130904300741p325012b7g28dabbd33576ceae@mail.gmail.com","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2009-04-30T15:03:35Z","receivedAt":"2009-04-30T15:03:35Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"On Thu, Apr 30, 2009 at 4:41 PM, Avery Pennarun <apenwarr@gmail.com> wrote:\n> Try this:\n>\n>  strace -fF git svn  clone  -T trunk\n> http://paintweb.googlecode.com/svn paintweb.git 2>&1 | egrep -i\n> 'git.pm|git-svn'\n>\n> If you wade through the output, it should tell you which git.pm and\n> git-svn you're *really* getting.\n\nThe output looks reasonable:\n\n$ strace -fF git svn  clone  -T trunk\nhttp://paintweb.googlecode.com/svn paintweb.git 2>&1 | egrep -i\n'git.pm|git-svn'\nexecve(\"/home/martin/libexec/git-core/git-svn\", [\"git-svn\", \"clone\",\n\"-T\", \"trunk\", \"http://paintweb.googlecode.com/s\"..., \"paintweb.git\"],\n[/* 44 vars */]) = 0\nopen(\"/home/martin/libexec/git-core/git-svn\", O_RDONLY|O_LARGEFILE) = 3\nstat64(\"/home/martin/share/perl/5.10.0/Git.pmc\", 0xbffa451c) = -1\nENOENT (No such file or directory)\nstat64(\"/home/martin/share/perl/5.10.0/Git.pm\", {st_mode=S_IFREG|0444,\nst_size=35479, ...}) = 0\nopen(\"/home/martin/share/perl/5.10.0/Git.pm\", O_RDONLY|O_LARGEFILE) = 4\n[pid 23322] write(2, \"Unexpected result returned from \"...,\n96Unexpected result returned from git cat-file at\n/home/martin/libexec/git-core/git-svn line 3252\nwrite(2, \"Failed to read object 4b90eef952\"..., 116Failed to read\nobject 4b90eef95225bb9e34000e050d0cac8b84ab36f6 at\n/home/martin/libexec/git-core/git-svn line 3253.\n\ncheers,\n\n\nmartin\n\n-- \n martin.langhoff@gmail.com\n martin@laptop.org -- School Server Architect\n - ask interesting questions\n - don't get distracted with shiny stuff  - working code first\n - http://wiki.laptop.org/go/User:Martinlanghoff\n"},{"id":"112775","messageId":"32541b130904300926x472d6d14p2896d3ade7566684@mail.gmail.com","threadId":"19122","inReplyTo":"46a038f90904300803h555f02b3n76d03c93d99f7506@mail.gmail.com","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2009-04-30T16:26:46Z","receivedAt":"2009-04-30T16:26:46Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On Thu, Apr 30, 2009 at 11:03 AM, Martin Langhoff\n<martin.langhoff@gmail.com> wrote:\n> On Thu, Apr 30, 2009 at 4:41 PM, Avery Pennarun <apenwarr@gmail.com> wrote:\n>> Try this:\n>>\n>>  strace -fF git svn  clone  -T trunk\n>> http://paintweb.googlecode.com/svn paintweb.git 2>&1 | egrep -i\n>> 'git.pm|git-svn'\n>>\n>> If you wade through the output, it should tell you which git.pm and\n>> git-svn you're *really* getting.\n>\n> The output looks reasonable:\n>\n> $ strace -fF git svn  clone  -T trunk | http://paintweb.googlecode.com/svn paintweb.git 2>&1 | egrep -i 'git.pm|git-svn'\n> execve(\"/home/martin/libexec/git-core/git-svn\", [\"git-svn\", \"clone\",\n> \"-T\", \"trunk\", \"http://paintweb.googlecode.com/s\"..., \"paintweb.git\"],\n> [/* 44 vars */]) = 0\n> open(\"/home/martin/libexec/git-core/git-svn\", O_RDONLY|O_LARGEFILE) = 3\n> stat64(\"/home/martin/share/perl/5.10.0/Git.pmc\", 0xbffa451c) = -1\n> ENOENT (No such file or directory)\n> stat64(\"/home/martin/share/perl/5.10.0/Git.pm\", {st_mode=S_IFREG|0444,\n> st_size=35479, ...}) = 0\n> open(\"/home/martin/share/perl/5.10.0/Git.pm\", O_RDONLY|O_LARGEFILE) = 4\n> [pid 23322] write(2, \"Unexpected result returned from \"...,\n> 96Unexpected result returned from git cat-file at\n> /home/martin/libexec/git-core/git-svn line 3252\n> write(2, \"Failed to read object 4b90eef952\"..., 116Failed to read\n> object 4b90eef95225bb9e34000e050d0cac8b84ab36f6 at\n> /home/martin/libexec/git-core/git-svn line 3253.\n\nAnd do the contents of these files match the ones in your git source\ndirectory?  What are their md5sums?\n\n/home/martin/libexec/git-core/git-svn\n/home/martin/share/perl/5.10.0/Git.pm\n\nAvery\n"},{"id":"112776","messageId":"46a038f90904300931l4460a085pce97fcb5cdf32dc3@mail.gmail.com","threadId":"19122","inReplyTo":"32541b130904300926x472d6d14p2896d3ade7566684@mail.gmail.com","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2009-04-30T16:31:22Z","receivedAt":"2009-04-30T16:31:22Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"On Thu, Apr 30, 2009 at 6:26 PM, Avery Pennarun <apenwarr@gmail.com> wrote:\n> And do the contents of these files match the ones in your git source\n> directory?  What are their md5sums?\n>\n> /home/martin/libexec/git-core/git-svn\n> /home/martin/share/perl/5.10.0/Git.pm\n\nThey match alright -\n\nsha1sum /home/martin/share/perl/5.10.0/*\ne5ceeaa91bfe878ac45a5e5daad4fa1d50b6ff4a\n/home/martin/share/perl/5.10.0/Error.pm\nd752abdebc8e40801d891859e6764631c2f1e8ff  /home/martin/share/perl/5.10.0/Git.pm\n\n~/src/git$ sha1sum perl/blib/lib/*pm\ne5ceeaa91bfe878ac45a5e5daad4fa1d50b6ff4a  perl/blib/lib/Error.pm\nd752abdebc8e40801d891859e6764631c2f1e8ff  perl/blib/lib/Git.pm\n\n~/src/git$ sha1sum /home/martin/libexec/git-core/git-svn git-svn\n37cae8b77552f0bbdd54e060318bbc6a269a7577  /home/martin/libexec/git-core/git-svn\n37cae8b77552f0bbdd54e060318bbc6a269a7577  git-svn\n\nit's really weird.\n\n\n\nm\n-- \n martin.langhoff@gmail.com\n martin@laptop.org -- School Server Architect\n - ask interesting questions\n - don't get distracted with shiny stuff  - working code first\n - http://wiki.laptop.org/go/User:Martinlanghoff\n"},{"id":"112777","messageId":"49F9D69A.9080204@drmicha.warpmail.net","threadId":"19122","inReplyTo":"46a038f90904300931l4460a085pce97fcb5cdf32dc3@mail.gmail.com","subject":"Re: git svn errors out with git-cat-file \"usage\" message","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-04-30T16:49:30Z","receivedAt":"2009-04-30T16:49:30Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Martin Langhoff venit, vidit, dixit 30.04.2009 18:31:\n> On Thu, Apr 30, 2009 at 6:26 PM, Avery Pennarun <apenwarr@gmail.com> wrote:\n>> And do the contents of these files match the ones in your git source\n>> directory?  What are their md5sums?\n>>\n>> /home/martin/libexec/git-core/git-svn\n>> /home/martin/share/perl/5.10.0/Git.pm\n> \n> They match alright -\n> \n> sha1sum /home/martin/share/perl/5.10.0/*\n> e5ceeaa91bfe878ac45a5e5daad4fa1d50b6ff4a\n> /home/martin/share/perl/5.10.0/Error.pm\n> d752abdebc8e40801d891859e6764631c2f1e8ff  /home/martin/share/perl/5.10.0/Git.pm\n> \n> ~/src/git$ sha1sum perl/blib/lib/*pm\n> e5ceeaa91bfe878ac45a5e5daad4fa1d50b6ff4a  perl/blib/lib/Error.pm\n> d752abdebc8e40801d891859e6764631c2f1e8ff  perl/blib/lib/Git.pm\n> \n> ~/src/git$ sha1sum /home/martin/libexec/git-core/git-svn git-svn\n> 37cae8b77552f0bbdd54e060318bbc6a269a7577  /home/martin/libexec/git-core/git-svn\n> 37cae8b77552f0bbdd54e060318bbc6a269a7577  git-svn\n> \n> it's really weird.\n\nHave you ever checked the usage strings which your instances of\n\"git-cat-file\" output, as I suggested?\n\nBTW: Does make test work for you?\n\nMichael\n"}]}