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

controllers: use new git contract #239

Merged
merged 2 commits into from
Oct 28, 2021
Merged

controllers: use new git contract #239

merged 2 commits into from
Oct 28, 2021

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Oct 24, 2021

This PR makes use of the refactored git package, which has
been reworked to increase stability and test coverage, and ensures
implementation details do not leak out into the "main wrapper".

This indirectly seems to resolve a memory leak that happenedd with
the previous wiring, and thereby fixes #247.

The code changes for this controller itself are minimal, mostly
ensuring the auth and checkout configurations are created in the
"new way".

In addition, it ensures all underlying libgit2 C objects are
properly Freed, replacing #238.

controllers/git_test.go Outdated Show resolved Hide resolved
@hiddeco hiddeco force-pushed the sc-git-update branch 2 times, most recently from eef0f29 to 581b3fe Compare October 28, 2021 09:30
This commit makes use of the refactored `git` package, which has
been reworked to increase stability and test coverage, and ensures
implementation details do not leak out into the "main wrapper".

This indirectly seems to resolve a memory leak that happenedd with
the previous wiring, thereby fixing #247.

The code changes for this controller itself are minimal, mostly
ensuring the auth and checkout configurations are created in the
"new way".

Signed-off-by: Hidde Beydals <hello@hidde.co>
This supersedes #238.

Signed-off-by: Hidde Beydals <hello@hidde.co>
@hiddeco hiddeco added the enhancement New feature or request label Oct 28, 2021
@hiddeco hiddeco marked this pull request as ready for review October 28, 2021 13:37
Copy link
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks.

@hiddeco hiddeco merged commit ff0ad13 into main Oct 28, 2021
@hiddeco hiddeco deleted the sc-git-update branch October 28, 2021 13:51
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

Successfully merging this pull request may close these issues.

Huge RAM consumption after updating to 0.15.0
2 participants