Random invalid pointer handle
using Managed Transport #915
Labels
No Label
bug
duplicate
enhancement
invalid
question
up for grabs
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: jcarr/git2go#915
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We have implemented a managed transport for
git2go
in fluxcd/source-controller, which is heavily based on git2go's default implementation and it works quite well most of times.However, we have noticed that at times
git2go
maypanic
when trying to callgit2go/v33.(*HandleList).Get
.I am finding it difficult to reproduce this consistently, but have experienced it a few times (e.g. the Git Fetch example below) on my local setup.
Git Fetch
Other users are experiencing it quite consistently but during a clone, at the point of getting to the credentials call back:
Getting smart credentials during Clone
The handle's list is part of
git2go
internal state, so I am not quite sure how we can ensure it is already properly set.Has anyone else experienced this? Any pointers on how to resolve it?
Unfortunately, the only way we found to consistently avoid this issue was to not use
transport.SmartCredentials()
and stop relying on git2go primitives to store and return data we may later need during the callbacks.