| ... | @@ -24,7 +24,7 @@ pub const Dep = struct { | ... | @@ -24,7 +24,7 @@ pub const Dep = struct { |
| 24 | | 24 | |
| 25 | pub fn clean_path(self: Dep) ![]const u8 { | 25 | pub fn clean_path(self: Dep) ![]const u8 { |
| 26 | var p = self.path; | 26 | var p = self.path; |
| 27 | p = u.trim_prefix(p, "https://"); | 27 | p = u.trim_prefix(p, "http://"); |
| 28 | p = u.trim_prefix(p, "https://"); | 28 | p = u.trim_prefix(p, "https://"); |
| 29 | p = u.trim_suffix(u8, p, ".git"); | 29 | p = u.trim_suffix(u8, p, ".git"); |
| 30 | p = try std.fmt.allocPrint(gpa, "{}{}{}", .{@tagName(self.type), "/", p}); | 30 | p = try std.fmt.allocPrint(gpa, "{}{}{}", .{@tagName(self.type), "/", p}); |