I don't love having knowledge of GitExceptions in this file, but don't have a better solution...