Fix compiler warning (unused variable) in git2r C code

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>