Difference between revisions of "Gitolite"

From GnuCash
Jump to: navigation, search
(Gitolite - how to redo gnucash-htdocs)
 
m (Little layout work)
Line 9: Line 9:
  
 
Here's the steps that should do it:
 
Here's the steps that should do it:
 
  
 
=== On github ===
 
=== On github ===
 
 
* rename repo '''gnucash-htdocs''' to '''gnucash-htdocs-old'''
 
* rename repo '''gnucash-htdocs''' to '''gnucash-htdocs-old'''
 
* create a new, empty repo called '''gnucash-htdocs'''
 
* create a new, empty repo called '''gnucash-htdocs'''
  
 
=== On www ===
 
=== On www ===
 
 
* move the existing repo out of the way
 
* move the existing repo out of the way
 
* create a new empty repo in the old spot
 
* create a new empty repo in the old spot
Line 23: Line 20:
  
 
=== In gitolite-admin ===
 
=== In gitolite-admin ===
 
 
* comment out the '''gnucash-htdocs''' repo
 
* comment out the '''gnucash-htdocs''' repo
 
* push changes upstream (this will make gitolite "forget" about this repo)
 
* push changes upstream (this will make gitolite "forget" about this repo)
  
 
=== On code ===
 
=== On code ===
 
 
* move '''gnucash-htdocs''' directory out of the way
 
* move '''gnucash-htdocs''' directory out of the way
 
  
 
=== In gitolite-admin ===
 
=== In gitolite-admin ===
 
 
* uncomment the '''gnucash-htdocs''' repo
 
* uncomment the '''gnucash-htdocs''' repo
 
* push changes upstream (this causes gitolite to recreate repo)
 
* push changes upstream (this causes gitolite to recreate repo)
  
 
=== On code ===
 
=== On code ===
 
 
* set '''git://github.com/Gnucash/gnucash-htdocs.git''' as origin for the gnucash-htdocs repo
 
* set '''git://github.com/Gnucash/gnucash-htdocs.git''' as origin for the gnucash-htdocs repo
  
 
=== On Geert's local machine ===
 
=== On Geert's local machine ===
 
 
* set '''git@code.gnucash.org:gnucash-htdocs''' as origin for the gnucash-htdocs repo
 
* set '''git@code.gnucash.org:gnucash-htdocs''' as origin for the gnucash-htdocs repo
 
* push reduced repo
 
* push reduced repo

Revision as of 18:56, 3 February 2014

GnuCash maintains its source code repositories in gitolite. This comes with some constraints on how to administer the repos. You can't just delete and recreate a repo on the server for instance. You need to do some steps the gitolite way or things stop working.

This page is meant to collect such points of attention.


Replace gnucash-htdocs repo

Background: the gnucash-hdocs repo (used to) contain all the compiled documentation. This documentation alone is about 570Mb, which most website editors will never touch. So it was decided to move these docs into a separate repo. Replacing the repo affect several other repos: the github slave repo and the website's slave repo. Both have to be replaced at the appropriate time as well.

Here's the steps that should do it:

On github

  • rename repo gnucash-htdocs to gnucash-htdocs-old
  • create a new, empty repo called gnucash-htdocs

On www

  • move the existing repo out of the way
  • create a new empty repo in the old spot
  • set git@code.gnucash.org:gnucash-htdocs as origin for this repo

In gitolite-admin

  • comment out the gnucash-htdocs repo
  • push changes upstream (this will make gitolite "forget" about this repo)

On code

  • move gnucash-htdocs directory out of the way

In gitolite-admin

  • uncomment the gnucash-htdocs repo
  • push changes upstream (this causes gitolite to recreate repo)

On code

On Geert's local machine

  • set git@code.gnucash.org:gnucash-htdocs as origin for the gnucash-htdocs repo
  • push reduced repo