* git svn exits with error error closing pipe: Bad file descriptor
@ 2013-07-18 12:52 Kacper Kornet
0 siblings, 0 replies; only message in thread
From: Kacper Kornet @ 2013-07-18 12:52 UTC (permalink / raw)
To: git
After upgrade to subversion 1.8.0 on some repositories
git svn clone shows two warnings:
error closing pipe: Bad file descriptor at
/home/users/kornet/giti/libexec/git-core/git-svn line 0.
at exit. They appear because process git cat-file --batch exits before
command_close_bidi_pipe is called by destructor during perl exit. The
solution is to call the destructor explicitly, e.q.:
index ff1ce3d..6811738 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -2068,6 +2068,10 @@ sub gc_directory {
}
}
+END {
+ undef $_repository;
+}
+
__END__
Data structures:
However I'm not sure whether it is not a symptom of some other error.
What's confuses me more is that the warnings don't appear for all
repositories. For example they appear for http://svn.pld-linux.org/svn/cdpl/
while cloning http://svn.pld-linux.org/svn/atob ends normally.
On the other hand it is consistent between two different machines with
different Linux distributions and perl versions.
--
Kacper Kornet
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-18 13:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-18 12:52 git svn exits with error error closing pipe: Bad file descriptor Kacper Kornet
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).