Add Feature query support & panic if libgit2 is not thread-aware #354
Loading…
Reference in New Issue
No description provided.
Delete Branch "cmn/panic-threading"
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 ask libgit2 whether it's thread-safe and we panic if it's not. Go's runtime's interaction with C code is inherently multi-threaded so we're bound to crash anyway. Do it at the start with a message that describes the issue.
I'm not sure how to do automated testing for this without incurring twice the cost of building libgit2, but It Works On My Machine.
This fixes #329