fixed escaping quotes and passing parameters to the git function