added comment to gitcheck() function