git-extractor: fix revwalk in commits calculator