The source project of this merge request has been removed.
Fix a dangling Gitaly connection
In In !63 (merged) we added a context that can fail to be created, but missed that when this happens, we exit from NewGitalyClient
without closing the connection we already dialled to gitaly.
It will be closed anyway, when the process exits just after returning the error, but we might as well be as correct as possible here.
Edited by Nick Thomas