Skip to content

Conversation

@shenhanc78
Copy link
Collaborator

"git log --format=%h" does not always give the 12-hex long githash, this causes githash check failure.

Fixed by using "git log --format=%H" which gives the full githash, and only compare the first 12 hex numbers to the predefined githash.

Tested by running this both on the buildbot and on workstations.

"git log --format=%h" does not always give the 12-hex long githash,
this causes githash check failure.  Fixed by using "git log
--format=%H" which gives the full githash, and only compare the first
12 hex numbers to the predefined githash.

Tested by running this both on the buildbot and on workstations.
@shenhanc78 shenhanc78 requested a review from snehasish July 17, 2024 02:53
Copy link
Collaborator

@snehasish snehasish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw the same issue in my draft PR which adds a basic CI. I'll rebase my changes on this if you want to get this in sooner or I can fix it when I push my changes.

If you do want to go ahead with this, can you use the full hash instead of taking a substring, it should be "e4f9175d23950ecaef32db075ed47dafe3be555c".

@shenhanc78
Copy link
Collaborator Author

I see. Either way should be fine.

@snehasish
Copy link
Collaborator

Ok, lets hold on to this and I'll rebase and send out my changes for review by the end of the day.

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

Successfully merging this pull request may close these issues.

2 participants