Download zip without repo directory as parent directory

When downloading a repo or a folder in the repo as a zip file, how can I download it and have the contents of the repo be the root of the zip, instead of the root being reponame-master.

Aka instead of ZIP/reponame-master/contents just make it ZIP/contents.