Fixing bug in gitHelper