fastlane-plugin-semantic_release
fastlane-plugin-semantic_release copied to clipboard
Multiple hashes from rev-list
Hi, so I always get 2 hashes from git rev-list --max-parents=0 HEAD
even with the full git history, which results in this error:
[12:12:51]: git rev-list --max-parents=0 HEAD resulted to more than 1 hash
[12:12:51]: This usually happens when you pull only part of a git history. Check out how you pull the repo! "git fetch" should be enough.
the only workaround that seems to fix this is piping it through tail:
git rev-list --max-parents=0 HEAD | tail -n 1
I am happy to open a PR but I am not sure if this would then break the script when only part of a git history is present. So I just wanted to get your input @xotahal .