summary refs log tree commit diff stats
path: root/modules/nixos/vhack/git-server/default.nix (follow)
Commit message (Collapse)AuthorAge
* fix(nixos/git-server): Use the correct number in the `section-from-path` settingBenedikt Peetz2024-08-14
| | | | | | | | | | | | | | Take for example a repository name like: `some/organisation/project_a/team_c/repo_b`. Setting the setting to `-1` means that cgit traverses the path from left to right, until it has found 1 element (and `section-from-path` (or n for short)is 0, because n is incremented after each iteration). E.g. : ~ [n=-1] starting point: `some/organisation/project_a/team_c/repo_b` ~ [n=0] after the first iteration: `some/organisation/project_a/team_c/repo_b` Now `some/organisation/project_a/team_c` becomes the section, whilst `repo_b` becomes the repo name.
* fix(nixos/git-server): Correctly specify the section from path lengthBenedikt Peetz2024-08-13
| | | | | | | | | | | | | | Cgit effectively splits the repo path on '/' and then takes `section-from-path` segments, which form the section. A negative value here results in cgit traversing the path from left to right instead of right to left. Beware that cgit only sets the section, if the path contains `section-from-path` or more slashes in it (thus rendering this setting defunct with the previous value of 1000). There seems to be no way to tell cgit to always use all components up-to the second to last for the section name, thus requiring all projects that need a longer than 1 section length to set the `cgit.section` git config variable via gitolite.
* fix(nixos/git-server): Correctly enable the git config feature of gitoliteBenedikt Peetz2024-08-13
| | | | | | | | The previously set variable is only used in the gitolite.conf file for the `config` specifications on each repo. We can't use that because we use "wild-repos". Thus we need to add the `user-configs` option to each repo, allow users to change the git settings specified there with a simple `ssh git@git.vhack.eu config <repo> --set cgit.owner <name>`.
* fix(nixos/git-server): Use correct regex syntax in allowed git config valuesBenedikt Peetz2024-08-13
|
* fix(nixos/git-server): Correctly specify cgit's css pathBenedikt Peetz2024-08-13
|
* feat(nixos/git-server): Add nice gitolite featuresBenedikt Peetz2024-08-13
|
* fix(nixos/git-server): Tell gitolite to allow changing some `git` settingsBenedikt Peetz2024-08-13
|
* feat(nixos/git-server): Add further cgit settingsBenedikt Peetz2024-08-13
| | | | | A lot of the added settings here have been tested. They will get get tests to ensure they stay working, in later commits.
* fix(nixos/git-server): Add the required configuration to support http-cloneBenedikt Peetz2024-08-02
|
* fix(git-server): set git default-branch to mainSilas Schöffel2024-07-30
|
* refactor(modules): Ensure strict coherence to patternsBenedikt Peetz2024-06-13