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

From GLMWiki
Jump to: navigation, search
(Created page with "== 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 f...")
 
(Create a new repo in Bitbucket Server)
 
(3 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
Add remote (bitbucket)  
 
Add remote (bitbucket)  
 
  cd (old repo)
 
  cd (old repo)
  git remote add bitbucket (ssh url for bitbucket repo)
+
  git push --mirror (ssh url for bitbucket repo)
git push --all bitbucket
+
git push --tags bitbucket
+
  
 
Update your remote url for (origin)
 
Update your remote url for (origin)
Line 19: Line 17:
 
goto the home directory and use
 
goto the home directory and use
 
  gitolite writable (old-repo) off
 
  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-db-packaging
 +
glm-member-db-search
 +
glm-member-db-serverstats
 +
glm-member-db-social
 +
glm-serverstats

Latest revision as of 09:52, 11 November 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 push --mirror (ssh url for bitbucket repo)

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-db-packaging
glm-member-db-search
glm-member-db-serverstats
glm-member-db-social
glm-serverstats