Difference between revisions of "Process for moving repos to Bitbucket Server"

From GLMWiki
Jump to: navigation, search
(Create a new repo in Bitbucket Server)
(Create a new repo in Bitbucket Server)
Line 22: Line 22:
 
You'll need to update all remote url's for each website we have installed the old-repo on.
 
You'll need to update all remote url's for each website we have installed the old-repo on.
 
I have a set of scripts that can do this.
 
I have a set of scripts that can do this.
 +
 +
I'll need to update the script in the update_server that is calling git archive for each of the plugins that are in update_server.
 +
Gaslightify
 +
glm-member-db-contacts
 +
glm-member-db-events
 +
glm-member-db
 +
glm-member-packaging
 +
glm-member-db-search
 +
glm-member-db-serverstats
 +
glm-member-db-social
 +
glm-serverstats

Revision as of 11:50, 29 October 2019

Create a new repo in Bitbucket Server

Goto the GlmAssociate project on https://bitbucket.gaslightmedia.com:8443 and add a new Repo.

Clone the current repo with --bare flag

git clone --bare {old repo url}

Grab the clone url (ssh)

Add remote (bitbucket)

cd (old repo)
git remote add bitbucket (ssh url for bitbucket repo)
git push --all bitbucket
git push --tags bitbucket

Update your remote url for (origin)

git remote set-url origin (ssh url for bitbucket repo)

Block any new pushes to gitolite repo. Goto the cvs2 and change to the git user. goto the home directory and use

gitolite writable (old-repo) off

You'll need to update all remote url's for each website we have installed the old-repo on. I have a set of scripts that can do this.

I'll need to update the script in the update_server that is calling git archive for each of the plugins that are in update_server.

Gaslightify
glm-member-db-contacts
glm-member-db-events
glm-member-db
glm-member-packaging
glm-member-db-search
glm-member-db-serverstats
glm-member-db-social
glm-serverstats