Add version from_git_repository method