| ... | @@ -26,6 +26,7 @@ pub const Dep = struct { | ... | @@ -26,6 +26,7 @@ pub const Dep = struct { |
| 26 | var p = self.path; | 26 | var p = self.path; |
| 27 | p = u.trim_prefix(p, "http://"); | 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_prefix(p, "git://"); |
| 29 | p = u.trim_suffix(u8, p, ".git"); | 30 | p = u.trim_suffix(u8, p, ".git"); |
| 30 | p = try std.fmt.allocPrint(gpa, "{}{}{}", .{@tagName(self.type), "/", p}); | 31 | p = try std.fmt.allocPrint(gpa, "{}{}{}", .{@tagName(self.type), "/", p}); |
| 31 | return p; | 32 | return p; |