Fix various sparse warnings in the git source code