Fix compilation warning of Git.cpp

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>