Making things work with libgit2 at 2dc49ea

plus running `gofmt`.