╭ changed ────────╮ │src/ui/widget.zig│ ╰─────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │331 errdefer box.deinit(allocator); │ │332 │ │333 // built first so the text can center over it │ │334 - var remote_maybe: ?CopyableText = if (session.data.host_kind == .server and handle.canWrite()) if (session.data.git_ssh_port) |port| blk: { │ │334 + var remote_maybe: ?CopyableText = if (session.data.host_kind == .server and handle.canWrite()) if (session.data.git_ssh_url) |ssh_url| blk: {│ │335 // only repo pages flag a repo without commits │ │336 const identity = switch (handle.location) { │ │337 .repo => |identity| identity, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────╮ │338 .fork => unreachable, │ │339 }; │ │340 const aa = session.page_arena.allocator(); │ │341 - const url = try aa.print("ssh://localhost:{d}/{s}", .{ port, identity });│ │341 + const url = try aa.print("{s}/{s}", .{ ssh_url, identity }); │ │342 break :blk try CopyableText.init(allocator, session, &.{.{ │ │343 .text = url, │ │344 .copyable_text = try aa.print("git remote add origin {s}", .{url}), │ ╰──────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2133 var ssh_index: ?usize = null; │ │2134 switch (handle.location) { │ │2135 .repo => |identity| { │ │2136 - const http_port = if (handle.read_access == .public) session.data.git_http_port else null;│ │2137 - if (http_port) |port| { │ │2138 - const url = try aa.print("http://localhost:{d}/{s}", .{ port, identity }); │ │2136 + const http_url = if (handle.read_access == .public) session.data.git_http_url else null; │ │2137 + if (http_url) |base| { │ │2138 + const url = try aa.print("{s}/{s}", .{ base, identity }); │ │2139 choices[count] = .{ │ │2140 .selector = "http", │ │2141 .text = url, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │2144 }; │ │2145 count += 1; │ │2146 } │ │2147 - if (session.data.git_ssh_port) |port| { │ │2147 + if (session.data.git_ssh_url) |ssh_url| { │ │2148 ssh_index = count; │ │2149 - const url = try aa.print("ssh://localhost:{d}/{s}", .{ port, identity });│ │2149 + const url = try aa.print("{s}/{s}", .{ ssh_url, identity }); │ │2150 choices[count] = .{ │ │2151 .selector = "ssh", │ │2152 .text = url, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2156 count += 1; │ │2157 } │ │2158 }, │ │2159 - .fork => |f| if (session.data.git_ssh_port) |port| { │ │2160 - const url = try aa.print("ssh://localhost:{d}/{s}+{s}", .{ port, f.identity, f.id }); │ │2159 + .fork => |f| if (session.data.git_ssh_url) |ssh_url| { │ │2160 + const url = try aa.print("{s}/{s}+{s}", .{ ssh_url, f.identity, f.id }); │ │2161 choices[count] = .{ │ │2162 .text = url, │ │2163 .copyable_text = try aa.print("{s}git clone {s}", .{ session.data.git_ssh_prefix, url }),│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯