gitifyhg
gitifyhg copied to clipboard
close failed in file object destructor
A strange error is appended to the usual clone output. No further information is available using DEBUG_GITIFYHG
. Might it be related to reopening stdout unbuffered?
pprice@tiger3:~/hsc $ git clone gitifyhg::ssh://mitaka//ana/hgrepo/hscPipe
Cloning into 'hscPipe'...
progress revision 99 'master' (100/522)
progress revision 199 'master' (200/522)
progress revision 299 'master' (300/522)
progress revision 399 'master' (400/522)
progress revision 499 'master' (500/522)
close failed in file object destructor:
Error in sys.excepthook:
Original exception was:
It's only on one system, so far as I can tell. I've tried installing a SIGPIPE handler, exception handlers and a sys.excepthook, and none catch the problem. Stumped.
P.S. It's just a nuisance: the repo is successfully cloned.
I thought I had fixed this error a long time ago. I believe it has something to do with gitifyhg trying to send data into the git pipe after git has closed the pipe. It must be some kind of race condition, but as you say, it seems to be benign.