add detail errors for getting last commit id