Open lunny opened 1 year ago
to have nice proxy-pattern and can switch between different git backend's ...
TODO:
this also might enable to use https://gitlab.com/gitlab-org/gitaly for us ... or split gitea int microservices ... (as one option)
Sorry somebody else might pick it up befor me ... i still intent to pick it up again if not addressed later :)
I think this could be replaced by #29033
Current status
Gitea's repositories are stored in a single directory that is configured via app.ini.
24783 would like hot/cold storage. i.e. repo archived repository will be stored in a HDD but the hot repository will be stored in SSD
22532 would like to store the repository in different directories with a hash
13791 request a distributed git storages like gitaly
The problems
setting.Repository.RepoRootPath
has been used by many places which fixed the usage to visit the repositorymodules/git.Command
has an optionDir
which fixed the git command run directoryResolution
setting.Repository.RepoRootPath
directlygit.Command
to visit the abstract levelOthers
Some ideas are storing git repositories with repository id but not
username/reponame
, how to handle it?