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

Use git rev-parse to get last commit sha #6366

Merged
merged 5 commits into from
Feb 29, 2024
Merged

Conversation

hekota
Copy link
Member

@hekota hekota commented Feb 28, 2024

Do not use git describe, it is using tags which might be out of date and unrelated to the current build and version.

Do not use `git describe`, it is using tags which might be out of date and unrelated to the current build and version.
Copy link
Contributor

github-actions bot commented Feb 28, 2024

⚠️ Python code formatter, darker found issues in your code. ⚠️

You can test this locally with the following command:
darker --check --diff -r 5a3178590581b4a7deea17dd45b6c4f1b51edb53..314e5b9c344ce2f04478c808e98f4f2fef5cb158 utils/version/gen_version.py
View the diff from darker here.
--- gen_version.py	2024-02-29 18:43:01.000000 +0000
+++ gen_version.py	2024-02-29 18:44:03.894382 +0000
@@ -36,10 +36,11 @@
     return output.decode('ASCII').strip()
 
 def is_dirty():
     diff = get_output_of(["git", "diff", "HEAD", "--shortstat"])
     return len(diff.strip()) != 0
+
 
 def get_last_commit_sha():
     try:
         sha = get_output_of(["git", "rev-parse", "--short", "HEAD"])
         if is_dirty():
  • Check this box to apply formatting changes to this branch.

utils/version/gen_version.py Outdated Show resolved Hide resolved
@pow2clk pow2clk merged commit aaab2a7 into microsoft:main Feb 29, 2024
11 of 12 checks passed
hekota added a commit to hekota/DirectXShaderCompiler that referenced this pull request Feb 29, 2024
Do not use `git describe`, it is using tags which might be out of date
and unrelated to the current build and version.

(cherry picked from commit aaab2a7)
hekota added a commit that referenced this pull request Feb 29, 2024
Do not use `git describe`, it is using tags which might be out of date
and unrelated to the current build and version.

(cherry picked from commit aaab2a7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants