fix bad merge (LastError -> MakeGitError)

Looks like a recent merge broke repository.go build due to LastError getting back in.