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

set remote callback before push #431

Closed
wants to merge 1 commit into from
Closed

Conversation

DrWrong
Copy link

@DrWrong DrWrong commented Oct 2, 2014

the origin remote.push method will not work if the reposity need to be authorize, because no call back set, so i copy the set perfomance the fetch method do to the push

callbacks.update_tips = self._update_tips_cb
callbacks.credentials = self._credentials_cb
# We need to make sure that this handle stays alive
self._self_handle = ffi.new_handle(self)
Copy link
Member

Choose a reason for hiding this comment

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

self._self_handle needs to be set to None after the push operation completes, next to freeing the push object itself.

@carlosmn
Copy link
Member

carlosmn commented Nov 3, 2014

I've squashed the resource leak fix and pushed that to master.

@carlosmn carlosmn closed this Nov 3, 2014
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

Successfully merging this pull request may close these issues.

2 participants