git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git svn import failure : write .git/Git_svn_hash_BmjclS: Bad file descriptor
@ 2015-01-29 22:03 Valery Yundin
  2015-01-29 23:34 ` Eric Wong
  0 siblings, 1 reply; 24+ messages in thread
From: Valery Yundin @ 2015-01-29 22:03 UTC (permalink / raw)
  To: git

Hi,

Looks like there might be a bug in SVN import code. Here is the
command that fails

> git svn clone --username anonymous svn://powhegbox.mib.infn.it/trunk/POWHEG-BOX

r217 = 2e6cdb1f4604b2256195590fa8275632971eac42 (refs/remotes/git-svn)
        M       lhefread.f
        M       Z_plus_jet/Born.f
        M       Z_plus_jet/powheg.input
        M       Z_plus_jet/init_processes.f
        D       JJ/madgraph_3_flavours/born/nexternal.inc
write .git/Git_svn_hash_bl5Cj3: Bad file descriptor
 at /usr/lib/perl5/vendor_perl/5.20.1/x86_64-linux-thread-multi/SVN/Ra.pm
line 623.

Tested on:
git-svn version 2.3.0.rc2 (svn 1.8.11) - FAIL
git-svn version 2.2.2 (svn 1.8.10) - FAIL
git-svn version 1.8.4.5 (svn 1.8.11) - WORKS

PS unfortunately I don't have admin access to SVN repository

With best regards, Valery Yundin.

^ permalink raw reply	[flat|nested] 24+ messages in thread
[parent not found: <CAK6Z60ciheWOUGOv1sYcA==B2WR1Rs_eMU+9a=R3FBwc_37CyQ@mail.gmail.com>]
* git svn import failure : write .git/Git_svn_hash_BmjclS: Bad file descriptor
@ 2015-01-16 17:13 Mike
  0 siblings, 0 replies; 24+ messages in thread
From: Mike @ 2015-01-16 17:13 UTC (permalink / raw)
  To: git

Similar to the issue mintywalker originally mentioned on Jan 8th 2015, 
during a "git svn clone" I get a Bad File Descriptor error using:

git-svn version 2.2.2 (svn 1.8.8) on Ubuntu 14.04.

<snip>
r460 = 456377de3906d689c56e51af842e18abe086a980 (refs/remotes/origin/trunk)
         A       client/binary/App_Client_v2.1.2.exe
r461 = 36848dbb7f417da2e381b61b68ff7b0d22a5bf7f (refs/remotes/origin/trunk)
write .git/Git_svn_hash_0WWL4a: Bad file descriptor
  at /usr/lib/perl5/SVN/Ra.pm line 623.


$ svn diff --diff-cmd diff -c 461
Index: client/binary/App_Client_v2.1.2.exe
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: client/binary/App_Client_v2.1.2.exe
===================================================================
--- client/binary/App_Client_v2.1.2.exe    (revision 0)
+++ client/binary/App_Client_v2.1.2.exe    (revision 461)

Property changes on: client/binary/App_Client_v2.1.2.exe
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property


Not sure if it helps or not, but here is the commit immediately after 
that one:

$ svn diff --diff-cmd diff -c 462
Index: interface/help/App_Client.exe
===================================================================
--- interface/help/App_Client.exe  (revision 0)
+++ interface/help/App_Client.exe  (revision 462)
@@ -0,0 +1 @@
+link ../../client/binary/App_Client_v2.1.2.exe
\ No newline at end of file

Property changes on: interface/help/App_Client.exe
___________________________________________________________________
Added: svn:special
## -0,0 +1 ##
+*
\ No newline at end of property

Unfortunately the repository is private, but it seems like a pretty 
simple commit that is causing the problem?

If you need more information please let me know.

Thanks.


-- 
Mike

^ permalink raw reply	[flat|nested] 24+ messages in thread
* git svn import failure : write .git/Git_svn_hash_BmjclS: Bad file descriptor
@ 2015-01-08 12:43 Minty
  2015-01-08 17:51 ` Minty
  2015-01-14  1:50 ` Eric Wong
  0 siblings, 2 replies; 24+ messages in thread
From: Minty @ 2015-01-08 12:43 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2015-03-23 19:56 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-29 22:03 git svn import failure : write .git/Git_svn_hash_BmjclS: Bad file descriptor Valery Yundin
2015-01-29 23:34 ` Eric Wong
2015-01-29 23:59   ` Valery Yundin
2015-01-30  0:22     ` Eric Wong
2015-01-30  0:40       ` Valery Yundin
2015-01-30  1:30         ` Eric Wong
2015-01-31 12:51           ` Nico Schlömer
2015-01-31 14:52             ` Valery Yundin
2015-02-12 19:18               ` Eric Wong
2015-02-16 15:10                 ` Nico Schlömer
2015-02-17  6:17                   ` Eric Wong
2015-02-25 10:19                     ` Kyle J. McKay
     [not found]                       ` <CAK6Z60fqEkM_tON6tcnwBqJzBCvLB=eVJdyXSnNb7N1iR_DSsw@mail.gmail.com>
2015-02-25 20:08                         ` Eric Wong
2015-02-25 20:33                         ` Kyle J. McKay
     [not found] <CAK6Z60ciheWOUGOv1sYcA==B2WR1Rs_eMU+9a=R3FBwc_37CyQ@mail.gmail.com>
2015-02-26  9:09 ` Nico Schlömer
2015-02-26 13:49   ` Kyle J. McKay
2015-02-26 21:27     ` Eric Wong
2015-03-23 19:11       ` Junio C Hamano
2015-03-23 19:36         ` Eric Wong
2015-03-23 19:56           ` Junio C Hamano
  -- strict thread matches above, loose matches on Subject: below --
2015-01-16 17:13 Mike
2015-01-08 12:43 Minty
2015-01-08 17:51 ` Minty
2015-01-14  1:50 ` Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).