summary refs log tree commit diff stats
path: root/modules/nixos/vhack/git-server/css.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-14 08:44:41 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-14 08:44:41 +0200
commit59679318a30dd78c75ca52b047ee697a2985f196 (patch)
tree8a08dfd05ae502616a8461e8121a59d507aec90f /modules/nixos/vhack/git-server/css.nix
parentbuild(flake.nix): Remove `ragenix` from the devshell (diff)
downloadnixos-server-59679318a30dd78c75ca52b047ee697a2985f196.tar.gz
nixos-server-59679318a30dd78c75ca52b047ee697a2985f196.zip
fix(nixos/git-server): Use the correct number in the `section-from-path` setting
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.
Diffstat (limited to 'modules/nixos/vhack/git-server/css.nix')
0 files changed, 0 insertions, 0 deletions