Signed-off-by: Winter winter@winter.cafe
+14
-3
knotserver/routes.go
+14
-3
knotserver/routes.go
···+// refs/tags/* is way more common than refs/heads/*, so we can live with an ugly file/directory+// name in the odd cases (e.g. refs-heads-master.tar.gz, but in that case the user should just+safeRefFilename := strings.ReplaceAll(strings.TrimPrefix(unescapedRef, "refs/tags/"), "/", "-")···