Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple hashes from rev-list #40

Open
dawidvdh opened this issue Aug 25, 2022 · 0 comments
Open

Multiple hashes from rev-list #40

dawidvdh opened this issue Aug 25, 2022 · 0 comments

Comments

@dawidvdh
Copy link
Contributor

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant