Added cwd and updated the gitdir param