From: Junio C Hamano Date: Tue, 16 Feb 2010 02:34:28 +0000 (-0800) Subject: Fix use of mutex in threaded grep X-Git-Tag: v1.7.0.1~20^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5f02d31597df35ca98e9080e12bfbb18dadadcbe?hp=5f02d31597df35ca98e9080e12bfbb18dadadcbe Fix use of mutex in threaded grep The program can decide at runtime not to use threading even if the support is compiled in. In such a case, mutexes are not necessary and left uninitialized. But the code incorrectly tried to take and release the read_sha1_mutex unconditionally. Signed-off-by: Junio C Hamano Acked-by: Fredrik Kuivinen ---