Fixed bugs in git plugin