GitSwarm 2016.3-2 Documentation


Cleanup

Remove garbage from filesystem. Important! Data loss!

Remove namespaces(dirs) from /home/git/repositories if they don't exist in GitSwarm database.

# package installations
sudo gitswarm-rake gitswarm:cleanup:dirs

# source installation
bundle exec rake gitswarm:cleanup:dirs RAILS_ENV=production

Rename repositories from /home/git/repositories if they don't exist in GitSwarm database. The repositories get a +orphaned+TIMESTAMP suffix so that they cannot block new repositories from being created.

# package installations
sudo gitswarm-rake gitswarm:cleanup:repos

# source installation
bundle exec rake gitswarm:cleanup:repos RAILS_ENV=production