Hi everyone,
This is my first post so apologies if it's not good enough, or has been poorly constructed. I'll to be as simple and to the point as possible.
If I want to give a repository to a client (for example a Wordpress plugin), I would like to be able to simple click on 'Download' and email them the ZIP file that's generated.
The problem I see is that the ZIP file is named using my personal name, and the email address I have, rather than the alias of the repository that I would expect (similar to how GitHub does it).
It also places a folder inside the archive that contains the files, that is also named using my personal name and my email address.
How can I change this so that the name of the ZIP file and the root folder is the simple, alias or slug of the repository instead? (by default if possible).
Hello Lee,
Thanks for coming to Community to ask about renaming your downloads from Bitbucket cloud. I do believe you did an excellent job with this post and covered everything you’re asking for with great detail. Now looking at your request, the reason your file is being named as you described is due to the repo name it resides within. Since this is a personal repo and not a team repo, it will use the owners' name (yourself) as the file name when the source is downloaded. If you’re wanting to change this then we would suggest reviewing the creation of a team within Bitbucket to transfer your repos.
More about transferring your repos to a team may be found at Teams and Create a team.
I hope this information proves helpful and helps to answer why your source download was named after you.
Regards,
Stephen Sifers
Hi Stephen,
Thanks for your reply.
Please correct me if I'm not understanding, but if the repository was held under a team and not a personal, I still believe the name of the ZIP file that's downloaded, and directory within the root of the ZIP file would still have the team name, rather than the name of the repository, is this correct?
So what I'm looking for, as I tried to explain, was a method to download a copy of the repository in ZIP, that has the name of just the repository as the ZIP file and root directory, and nothing to do with my name, my email address, the team or account this is held under.
Is this simply not possible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Lee,
Thank you for the clarification on more on what you’re looking to accomplish. When downloading a source from a repo the current naming convention will be used (team+repo.zip). There is a workaround to get past this by using the REST API to download your repo.
Here is how I would approach this:
wget https://bitbucket.org/<team>/<repo-name>/get/master.zip
Outside of this, if you’re wanting to have the file downloaded with a different filename by default then a feature request may be in order. You may create a feature request for this at Create a feature request.
I hope this information proves helpful and you’re able to have a different filename for your download.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.