{"thread":{"id":"34464","subject":"git svn exits with error error closing pipe: Bad file descriptor","startedAt":"2013-07-18T12:52:07Z","lastAt":"2013-07-18T12:52:07Z","messageCount":1,"participants":["Kacper Kornet"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"223646","messageId":"20130718125207.GA14823@camk.edu.pl","threadId":"34464","inReplyTo":null,"subject":"git svn exits with error error closing pipe: Bad file descriptor","fromName":"Kacper Kornet","fromEmail":"draenog@pld-linux.org","sentAt":"2013-07-18T12:52:07Z","receivedAt":"2013-07-18T12:52:07Z","isPatch":false,"sender":{"key":"draenog@pld-linux.org","avatar":"https://avatars.githubusercontent.com/u/608762?v=4"},"body":"After upgrade to subversion 1.8.0 on some repositories\ngit svn clone shows two warnings:\n\nerror closing pipe: Bad file descriptor at\n/home/users/kornet/giti/libexec/git-core/git-svn line 0.\n\nat exit. They appear because process git cat-file --batch exits before\ncommand_close_bidi_pipe is called by destructor during perl exit.  The\nsolution is to call the destructor explicitly, e.q.:\n\nindex ff1ce3d..6811738 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -2068,6 +2068,10 @@ sub gc_directory {\n        }\n }\n \n+END {\n+    undef $_repository;\n+}\n+\n __END__\n \n Data structures:\n\nHowever I'm not sure whether it is not a symptom of some other error.\nWhat's confuses me more is that the warnings don't appear for all\nrepositories. For example they appear for  http://svn.pld-linux.org/svn/cdpl/\nwhile cloning http://svn.pld-linux.org/svn/atob ends normally.\nOn the other hand it is consistent between two different machines with\ndifferent Linux distributions and perl versions.\n\n-- \n  Kacper Kornet\n"}]}