libgit2/libgit2 — pull request #1127 by jspahrsummers (2012-12-09 10:34:26+00:00)
Title: Fix mwindow threading

The global `git__mwindow_mutex` was never being properly initialized for pthreads, and the lack of error checking around `git_mutex_lock` hid this error.

This should fix some common crashes we've been seeing for ages in GitHub for Mac.