update last-commit parsing logic