[git] Fix the `credit` function