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

Could we store the commit hash in sol? #805

Closed
EveCharbie opened this issue Nov 15, 2023 · 4 comments
Closed

Could we store the commit hash in sol? #805

EveCharbie opened this issue Nov 15, 2023 · 4 comments

Comments

@EveCharbie
Copy link
Collaborator

Found this:

repo = git.Repo(search_parent_directories=True)
sha = repo.head.object.hexsha```
Here : https://stackoverflow.com/questions/14989858/get-the-current-git-hash-in-a-python-script 
@pariterre
Copy link
Member

Is this related to #804 ?
That would mean no need anymore

@EveCharbie
Copy link
Collaborator Author

#804 made me think of this.
I think it would be a good addition for when we generate solutions with the latest feature and forget which commit we were on.

@pariterre
Copy link
Member

But where would it it be saved since we do not have a save feature anymore?

@EveCharbie
Copy link
Collaborator Author

Unfortunately, lots of things in sol.ocp.nlp makes it unpicklable.

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

2 participants