cherry-pick https://github.com/ktoso/maven-git-commit-id-plugin/commit/1a113c0405c196da3788643800d9994f65c5bc15 :)