| ... | ... | @@ -141,7 +141,7 @@ fn get_moddir(basedir: []const u8, d: u.Dep, parent_name: []const u8, options: * |
| 141 | 141 | if ((try u.run_cmd(pv, &.{ "git", "checkout", vers.string })) > 0) { |
| 142 | 142 | u.assert(false, "fetch: git: {s}: {s} {s} does not exist", .{ d.path, @tagName(vers.id), vers.string }); |
| 143 | 143 | } |
| 144 | | if (vers.id != .branch) { |
| 144 | if (std.builtin.os.tag != .windows and vers.id != .branch) { |
| 145 | 145 | const pvd = try std.fs.cwd().openDir(pv, .{}); |
| 146 | 146 | try pvd.deleteTree(".git"); |
| 147 | 147 | } |