Extracting repository root into a separate class
authorMarius Mathiesen <marius@gitorious.org>
Thu, 6 Sep 2012 11:43:39 +0000 (13:43 +0200)
committerMarius Mathiesen <marius@gitorious.org>
Thu, 6 Sep 2012 11:43:39 +0000 (13:43 +0200)
commit46b346e70417c974190e2559fb0d78cd01dc6fa5
tree58c7b7666da79aca0a3346bafc00a3887a938283
parentd55d31d2c8e5df95a5bb012cacb9b8f1dabad680
Extracting repository root into a separate class

We will introduce support for several repository roots for large
installs. This commit extracts all knowledge of where repositories
reside into a separate class which will eventually map a single .git
to one of several directories (potentially on different file systems).

For now, only a single repository root exists: the one specified in
gitorious.yml
16 files changed:
app/models/repository.rb
app/models/repository_root.rb [new file with mode: 0644]
lib/git_backend.rb
lib/gitorious/diagnostics.rb
lib/gitorious/ssh/client.rb
lib/tasks/mirrorrepos.rake
script/create_wikis
script/fixup_hooks
script/git-daemon
script/gitorious-config
script/shard_git_repositories_by_hash
test/integration/git_http_cloning_test.rb
test/unit/git_backend_test.rb
test/unit/lib/ssh_client_test.rb
test/unit/repository_root_test.rb [new file with mode: 0644]
test/unit/repository_test.rb