╭ changed ────╮ │src/serve.zig│ ╰─────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────╮ │61 const data_dir = try std.Io.Dir.cwd().createDirPathOpen(io, data_dir_path, .{}); │ │62 defer data_dir.close(io); │ │63 │ │64 - // create the repos dir │ │64 + // create the users dir │ │65 │ │66 - const repo_root_path = try std.fs.path.resolve(allocator, &.{ data_dir_path, "repos" });│ │67 - defer allocator.free(repo_root_path); │ │66 + const users_dir = try std.fs.path.resolve(allocator, &.{ data_dir_path, "users" }); │ │67 + defer allocator.free(users_dir); │ │68 │ │69 - try std.Io.Dir.cwd().createDirPath(io, repo_root_path); │ │69 + try std.Io.Dir.cwd().createDirPath(io, users_dir); │ │70 │ │71 // the admin repo path is where the user/repo metadata events live │ │72 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │114 .host_key = try serve_ssh_protocol.HostKey.loadOrGenerate(io, allocator, data_dir_path),│ │115 .session_handler = .{ │ │116 .admin_repo_path = admin_repo_path, │ │117 - .repo_root_path = repo_root_path, │ │117 + .users_dir = users_dir, │ │118 .wui_port = wui_server.socket.address.getPort(), │ │119 .git_http_port = git_http_port, │ │120 .git_ssh_port = ssh_port, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │135 const git_ssh_port: ?u16 = if (ssh_maybe) |*ssh| ssh.listener.port() else null; │ │136 │ │137 if (http_maybe) |*http| { │ │138 - try err.print("serving HTTP on {s}:{d}, repo root {s}\n", .{ http.address.host, http.port(), repo_root_path }); │ │138 + try err.print("serving HTTP on {s}:{d}, users dir {s}\n", .{ http.address.host, http.port(), users_dir }); │ │139 try err.flush(); │ │140 - serve_http.runListener(repo_kind, any_repo_opts, io, allocator, repo_root_path, admin_repo_path, &http.server, &tasks, err);│ │140 + serve_http.runListener(repo_kind, any_repo_opts, io, allocator, users_dir, admin_repo_path, &http.server, &tasks, err); │ │141 } │ │142 │ │143 if (ssh_maybe) |*ssh| { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────╮ │151 │ │152 runWebListener(io, allocator, &wui_server, &tasks, .{ .server = .{│ │153 .admin_repo_path = admin_repo_path, │ │154 - .repo_root_path = repo_root_path, │ │154 + .users_dir = users_dir, │ │155 .session_store = session_store, │ │156 .git_http_port = git_http_port, │ │157 .git_ssh_port = git_ssh_port, │ ╰───────────────────────────────────────────────────────────────────────────╯