My company has a Stash server whose project structure has grown, um, "organically." We would like to reorganize our projects, but the single problem blocking us is that each project's clone URL includes the project code.
Is there a way to move a repository from one project to another without changing its clone URL? If not, is there a way to reorganize the project browsing pages in Stash without affecting the clone URLs? Failing both of those, can a remnant of the project be left behind so that the old URLs will redirect to the new URLs somehow?
If *none* of that's possible, it would be great to configure Stash/Bitbucket to not include the project code as part of the URL from the very beginning, so that this issue could be avoided for future repos.
We're using Stash v3.10.0, installed locally on our servers.
>Is there a way to move a repository from one project to another without changing its clone URL?
No
>If not, is there a way to reorganize the project browsing pages in Stash without affecting the clone URLs?
No
>Failing both of those, can a remnant of the project be left behind so that the old URLs will redirect to the new URLs somehow?
You could fork the repo and enable fork syncing, but that seems messy.
The better thing to do is to just reorganize the repos and then change their local remote URLs.
You can do this with the command
git remote set-url origin <new-url>
Persistent URLs are a long outstanding feature-request:
https://jira.atlassian.com/browse/BSERV-3751
You might vote for this as well
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ken,
There's an experimental plugin available that will flush a message to existing users when they try to clone from the old repository location. You'll have to build it from source, but you might find it useful.
cheers,
Tim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.