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

Verify git ref for DCS-BIOS live #183

Closed
emcek opened this issue Aug 22, 2023 · 1 comment
Closed

Verify git ref for DCS-BIOS live #183

emcek opened this issue Aug 22, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@emcek
Copy link
Owner

emcek commented Aug 22, 2023

Snippet:

from git import Repo, BadName

commit_hash = 'abcde'  # Replace this with the actual hash

repo = Repo('.')  # Use the repository in the current directory
try:
    commit = repo.commit(commit_hash)
    print(f"The commit {commit_hash} exists in the local repository.")
except BadName:
    print(f"The commit {commit_hash} is not found in the local repository.")
@emcek emcek added the enhancement New feature or request label Aug 22, 2023
@emcek emcek self-assigned this Aug 22, 2023
@emcek emcek mentioned this issue Sep 10, 2023
4 tasks
@emcek emcek added this to the Release 2.4.0 milestone Sep 13, 2023
@emcek
Copy link
Owner Author

emcek commented Sep 13, 2023

Done under: #174

@emcek emcek closed this as completed Sep 13, 2023
@emcek emcek modified the milestones: Release 2.4.0, Release 3.0.0 Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant