{"thread":{"id":"38309","subject":"git svn import failure : write .git/Git_svn_hash_BmjclS: Bad file descriptor","startedAt":"2015-01-08T12:43:32Z","lastAt":"2015-01-14T01:50:50Z","messageCount":3,"participants":["Minty","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"254462","messageId":"CANBgh6jyvbquuAwpWuuG4mJ3uZgajchcsJnttn4tN+LNE6EK+Q@mail.gmail.com","threadId":"38309","inReplyTo":null,"subject":"git svn import failure : write .git/Git_svn_hash_BmjclS: Bad file descriptor","fromName":"Minty","fromEmail":"mintywalker@gmail.com","sentAt":"2015-01-08T12:43:32Z","receivedAt":"2015-01-08T12:43:32Z","isPatch":false,"sender":{"key":"mintywalker@gmail.com","avatar":null},"body":"I appear to have hit a bug (or have data that the code fails on) while\nimporting an SVN repo to git.\n\nI'm wondering if there is anything I can do to help find / fix the\ncause, given I appear to have a fail-case.\n\nSadly I can't supply the SVN repo as the code is private.\n\nWhat I did:\n\ngit svn clone https://www.example.com/dshfkjhfsjhsdkjfhsdf/nameofrepo\n\nWhat I'm running:\n\nMacOS Yosemite 10.10.1 (14B25)\n\n§ git --version\ngit version 2.2.1\n\nBuilt via MacPorts using: sudo port install git +svn\n\nand updated today to the latest available.\n\nThe process was running for a few minutes and does appear to have\nimported a lot.  The last few lines of output, including the error\n(with paths/names anonymised)\n\nr869 = 9823c89bbdfa9d51aeb0a16c539049ae96nd5d62 (refs/remotes/git-svn)\n    D    path/to/stuff/Example1.java\n    D    path/to/stuff/Example2.java\nW: -empty_dir: path/to/stuff/Example1.java\nW: -empty_dir: path/to/stuff/Example2.java\nr870 = b1f06434b0b2f37a11be2ee5dfc6175bjs348545 (refs/remotes/git-svn)\nwrite .git/Git_svn_hash_BmjclS: Bad file descriptor\n at /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/SVN/Ra.pm\nline 623.\n\nAny advice / pointers would be welcome -- I'd be happy to run any\ntests & I'm reasonably comfortable coding in Perl so happy to poke\naround where I can.\n\nI've been using git for year (thanks! it rocks) and hoping I can avoid\nhaving to (re)learn too much about SVN.\n"},{"id":"254469","messageId":"CANBgh6gJ3dFK7uxWQKYu83H_Hz_LNPpomnNM_mULCe7Om=5aDg@mail.gmail.com","threadId":"38309","inReplyTo":"CANBgh6jyvbquuAwpWuuG4mJ3uZgajchcsJnttn4tN+LNE6EK+Q@mail.gmail.com","subject":"Re: git svn import failure : write .git/Git_svn_hash_BmjclS: Bad file descriptor","fromName":"Minty","fromEmail":"mintywalker@gmail.com","sentAt":"2015-01-08T17:51:40Z","receivedAt":"2015-01-08T17:51:40Z","isPatch":false,"sender":{"key":"mintywalker@gmail.com","avatar":null},"body":"On Thu, Jan 8, 2015 at 12:43 PM, Minty <mintywalker@gmail.com> wrote:\n> git svn clone https://www.example.com/dshfkjhfsjhsdkjfhsdf/nameofrepo\n>\n> r869 = 9823c89bbdfa9d51aeb0a16c539049ae96nd5d62 (refs/remotes/git-svn)\n>     D    path/to/stuff/Example1.java\n>     D    path/to/stuff/Example2.java\n> W: -empty_dir: path/to/stuff/Example1.java\n> W: -empty_dir: path/to/stuff/Example2.java\n> r870 = b1f06434b0b2f37a11be2ee5dfc6175bjs348545 (refs/remotes/git-svn)\n> write .git/Git_svn_hash_BmjclS: Bad file descriptor\n>  at /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/SVN/Ra.pm\n> line 623.\n\nfyi - tried the same repo, same command under Ubuntu 14.04, using the\nstock git-svn deb & it worked.\n\nhappy to help try debugging the problem on MacOS if anyone wants to\ngive me a pointer, but otherwise I'm good.\n\nThanks.\n"},{"id":"254635","messageId":"20150114015050.GA9134@dcvr.yhbt.net","threadId":"38309","inReplyTo":"CANBgh6jyvbquuAwpWuuG4mJ3uZgajchcsJnttn4tN+LNE6EK+Q@mail.gmail.com","subject":"Re: git svn import failure : write .git/Git_svn_hash_BmjclS: Bad file descriptor","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2015-01-14T01:50:50Z","receivedAt":"2015-01-14T01:50:50Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Minty <mintywalker@gmail.com> wrote:\n> § git --version\n> git version 2.2.1\n\nWhat about \"git svn --version\" ?\n(it'll display the SVN binding version, too)\n\n> Any advice / pointers would be welcome -- I'd be happy to run any\n> tests & I'm reasonably comfortable coding in Perl so happy to poke\n> around where I can.\n\nGreat to know.  Unfortunately, I no longer have access to the repo where\nI encountered the problem and haven't been able to reproduce it again,\neither.\n\nThe first step is to find a (preferably) fast way to reproduce the issue\nconsistently.  If you can isolate which revisions and change patterns in\nyour private repo cause it, it should be possible to create a public\nrepo without confidential data in it which reproduces the problem.\n"}]}