summaryrefslogtreecommitdiff
path: root/gitdump.py
AgeCommit message (Collapse)Author
2021-01-04Write a per-repository cgitrc file if requiredMagnus Hagander
Initially, load a special stylesheet if a tab width of 4 is chosen (like the main pg repo)
2020-12-27Update descriptions and list only if changedMagnus Hagander
Use the new replace_file_from_string() function to replace these files conditionally. Even if they're small...
2020-12-27Remove unused importMagnus Hagander
2020-12-27Remove description file for non-exported repositoriesMagnus Hagander
2020-12-27Support creation of both lighttpd and nginx configuration filesMagnus Hagander
We only support reloading one webserver, as it's not really expected to run more than one, but concurrently supporting generating both file formats will make migration a lot easier.
2020-08-11Make references to users be foreign key instead of string matchesMagnus Hagander
We've previously done string matching on usernames which comes with all sorts of problems :/ Instead, do a proper foreign key to the users model. Our authentication system already (and for a long time) supports importing a user by email address from upstream if the user doesn't exist, so instead update the integration to do that when adding new users with permissions. NOTE! Prior to deploying this migration all users referenced in the permissions and ssh tables *must* exist in auth_users, otherwise the migration will fail.
2020-02-23Another unicode fix for writing repo configsMagnus Hagander
2020-02-23Fix code for changing tab widthMagnus Hagander
This has been broken for some time since py3 requires the options to be in string format, it's just a very infrequent codepath.
2019-09-18Don't dump keys if they consist only of whitespaceMagnus Hagander
2019-02-07It seems tabremover is not needed in python3Magnus Hagander
2019-02-07Basic python3 updatesMagnus Hagander
2019-02-07pep8 fixesMagnus Hagander
2019-02-07tabs -> spaces for pep8Magnus Hagander
2013-04-13Generate lighttpd config output instead of .htaccess filesMagnus Hagander
This is what we use to publish and hide repositories for access over http (actualy git over http, not gitweb). And since we switched to lighttpd, we no longer use .htaccess.
2012-01-22Include full name, now that we have it from the new auth system...Magnus Hagander
Noted by Stefan Kaltenbrunner
2010-12-22Avoid using Python 2.6 syntaxMagnus Hagander
2010-12-22Add support for custom gitweb tabwidthMagnus Hagander
2009-10-17Properly dump multiple ssh keys to the authorized_keys file.Magnus Hagander
2009-08-01Add support for subdirectories in repository paths, per requestMagnus Hagander
from Peter E.
2009-03-26Include .git suffix in gitweb list as wellMagnus Hagander
2009-03-26Re-instate the ".git" suffix on all repositories, since Peter had a lotMagnus Hagander
of thought behind it being there.
2009-03-04Don't remove files/dirs starting with a period - becauseMagnus Hagander
those are lockfiles...
2009-03-04Dept of really stupid. COALESCE works the other way..Magnus Hagander
2009-03-04Deal with repositories without owner (such as remote ones)Magnus Hagander
2009-03-04Fix another bunch of typos. Maybe I should test things?Magnus Hagander
2009-03-04Move interlocking tool to it's own file, and use it from gitdumpMagnus Hagander
as well to prevent concurrent access.
2009-03-04Initial support for remote repository syncMagnus Hagander
2009-02-27Update obsolete commentMagnus Hagander
2009-02-12Support actually removing git repositories from the filesystem and notMagnus Hagander
just the database.
2009-02-12Initial attempt to support cloning of repositories when creatingMagnus Hagander
a new one. Not tested at all yet.
2009-01-28Make objects inherit from 'object' instead of nothing, perMagnus Hagander
comments from python expert :-)
2009-01-22Generate new repos as sharedMagnus Hagander
2008-12-31Generate .htaccess files to prevent access to repositories thatMagnus Hagander
don't have the anonymous flag set.
2008-12-31Dump the description of the projects.Magnus Hagander
2008-12-31Dump owner of repositoriesMagnus Hagander
2008-12-30Remove option not supported on freebsd opensshMagnus Hagander
2008-12-17Reasonable first half-usable version of scripts :-)Magnus Hagander