fastlane-plugin-semantic_release icon indicating copy to clipboard operation
fastlane-plugin-semantic_release copied to clipboard

Multiple hashes from rev-list

Open dawidvdh opened this issue 2 years ago • 0 comments

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 .

dawidvdh avatar Aug 25 '22 12:08 dawidvdh