Add revision to git params. Fix directory issue.