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

Refactored Git Work #425

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Refactored Git Work #425

merged 1 commit into from
Apr 11, 2024

Conversation

coreyogburn
Copy link
Contributor

Sigma and Yara Engines are both managing git repos in nearly the same way. I refactored so they're using a common code base.

For existing repos, this common git management code now will attempt to 1) open the repo, 2) get the work tree, 3) perform a hard reset, and 4) pull latest. If anything goes wrong with any of these then it'll attempt to delete and re-clone the repo.

Minor linting.

Sigma and Yara Engines are both managing git repos in nearly the same way. I refactored so they're using a common code base.

For existing repos, this common git management code now will attempt to 1) open the repo, 2) get the work tree, 3) perform a hard reset, and 4) pull latest. If anything goes wrong with any of these then it'll attempt to delete and re-clone the repo.

Minor linting.
@coreyogburn coreyogburn merged commit 557618a into 2.4/dev Apr 11, 2024
3 checks passed
@coreyogburn coreyogburn deleted the cogburn/git-errors branch April 11, 2024 21:44
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants