xotahal / fastlane-plugin-semantic_release

Fully automated version management and generator of release notes
MIT License
213 stars 59 forks source link

Multiple hashes from rev-list #40

Open dawidvdh opened 2 years ago

dawidvdh commented 2 years ago

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 .