git-remote-testgit: fix error handling