git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
MMinty <mintywalker@gmail.com>
Date
Jan 8, 2015, 12:43 UTC
Message-ID
<CANBgh6jyvbquuAwpWuuG4mJ3uZgajchcsJnttn4tN+LNE6EK+Q@mail.gmail.com>

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.

Next: Minty
Message 1 of 3 in “git svn import failure : write .git/Git_svn_hash_BmjclS: Bad file descriptor”
  1. MintyJan 8, 2015
  2. MintyJan 8, 2015
  3. Eric WongJan 14, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.