-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
ci-status won't work with 7-digits commit SHA #2266
Comments
Hub resolves the short SHA using How would you expect |
I am sorry beforehand, I forgot which PR is that commit SHA from. I attached the screenshot below that the Thank you very much! 🙂 |
It may be surprising, but I think this is expected behavior. Our local git repos cannot resolve the short SHA into the full commit ID because they don't contain that commit; it comes from a fork. (The commit would be resolved if we pulled from that specific fork.) When using the full commit ID, it is passed unchanged to the API and it is found there. The general rule is that it's usually better to use full commit SHAs rather than short ones. If you use short ones, you should ensure that your local git repo can resolve them to something. Does this make sense? |
Ah now that make sense. Sorry for the question. |
I tried to run
hub ci-status
with the short version of the commit SHA but it won't work. The commit that I am going to refer to can be found here.command:
hub ci-status e039ab0
output:
Aborted: no revision could be determined from 'e039ab0'
command:
hub ci-status e039ab02669ab9f2559458ad52296ee762563dee
output:
failure
The text was updated successfully, but these errors were encountered: