fixed panic when repo has no commits, removed debug statement