git svn import failure : write .git/Git_svn_hash_BmjclS: Bad file descriptor

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

git svn import failure : write .git/Git_svn_hash_BmjclS: Bad file descriptor

From: Minty <hidden>
Date: 2016-06-15 23:03:25

I appear to have hit a bug (or have data that the code fails on) while
importing an SVN repo to git.

I'm wondering if there is anything I can do to help find / fix the
cause, given I appear to have a fail-case.

Sadly I can't supply the SVN repo as the code is private.

What I did:

git svn clone https://www.example.com/dshfkjhfsjhsdkjfhsdf/nameofrepo

What I'm running:

MacOS Yosemite 10.10.1 (14B25)

§ git --version
git version 2.2.1

Built via MacPorts using: sudo port install git +svn

and updated today to the latest available.

The process was running for a few minutes and does appear to have
imported a lot.  The last few lines of output, including the error
(with paths/names anonymised)

r869 = 9823c89bbdfa9d51aeb0a16c539049ae96nd5d62 (refs/remotes/git-svn)
    D    path/to/stuff/Example1.java
    D    path/to/stuff/Example2.java
W: -empty_dir: path/to/stuff/Example1.java
W: -empty_dir: path/to/stuff/Example2.java
r870 = b1f06434b0b2f37a11be2ee5dfc6175bjs348545 (refs/remotes/git-svn)
write .git/Git_svn_hash_BmjclS: Bad file descriptor
 at /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/SVN/Ra.pm
line 623.

Any advice / pointers would be welcome -- I'd be happy to run any
tests & I'm reasonably comfortable coding in Perl so happy to poke
around where I can.

I've been using git for year (thanks! it rocks) and hoping I can avoid
having to (re)learn too much about SVN.

Re: git svn import failure : write .git/Git_svn_hash_BmjclS: Bad file descriptor

From: Minty <hidden>
Date: 2016-06-15 23:03:25

On Thu, Jan 8, 2015 at 12:43 PM, Minty [off-list ref] wrote:
git svn clone https://www.example.com/dshfkjhfsjhsdkjfhsdf/nameofrepo

r869 = 9823c89bbdfa9d51aeb0a16c539049ae96nd5d62 (refs/remotes/git-svn)
    D    path/to/stuff/Example1.java
    D    path/to/stuff/Example2.java
W: -empty_dir: path/to/stuff/Example1.java
W: -empty_dir: path/to/stuff/Example2.java
r870 = b1f06434b0b2f37a11be2ee5dfc6175bjs348545 (refs/remotes/git-svn)
write .git/Git_svn_hash_BmjclS: Bad file descriptor
 at /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/SVN/Ra.pm
line 623.
fyi - tried the same repo, same command under Ubuntu 14.04, using the
stock git-svn deb & it worked.

happy to help try debugging the problem on MacOS if anyone wants to
give me a pointer, but otherwise I'm good.

Thanks.

Re: git svn import failure : write .git/Git_svn_hash_BmjclS: Bad file descriptor

From: Eric Wong <hidden>
Date: 2016-06-15 23:03:28

Minty [off-list ref] wrote:
§ git --version
git version 2.2.1
What about "git svn --version" ?
(it'll display the SVN binding version, too)
Any advice / pointers would be welcome -- I'd be happy to run any
tests & I'm reasonably comfortable coding in Perl so happy to poke
around where I can.
Great to know.  Unfortunately, I no longer have access to the repo where
I encountered the problem and haven't been able to reproduce it again,
either.

The first step is to find a (preferably) fast way to reproduce the issue
consistently.  If you can isolate which revisions and change patterns in
your private repo cause it, it should be possible to create a public
repo without confidential data in it which reproduces the problem.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help