remove requirement for repo and ref, add git and archive flags