diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-14 08:44:41 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-14 08:44:41 +0200 |
commit | 59679318a30dd78c75ca52b047ee697a2985f196 (patch) | |
tree | 8a08dfd05ae502616a8461e8121a59d507aec90f /tests/nixos/vhack/git-server | |
parent | build(flake.nix): Remove `ragenix` from the devshell (diff) | |
download | nixos-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 'tests/nixos/vhack/git-server')
0 files changed, 0 insertions, 0 deletions