| ... | ... | @@ -151,7 +151,7 @@ pub fn get_modpath(cachepath: string, d: zigmod.Dep, options: *CollectOptions) ! |
| 151 | 151 | if ((try u.run_cmd(options.alloc, pv, &.{ "git", "checkout", vers.string })) > 0) { |
| 152 | 152 | u.fail("fetch: git: {s}: {s} {s} does not exist", .{ d.path, @tagName(vers.id), vers.string }); |
| 153 | 153 | } |
| 154 | | if (builtin.os.tag != .windows and vers.id != .branch) { |
| 154 | if (builtin.os.tag != .windows and vers.id == .commit) { |
| 155 | 155 | const pvd = try std.fs.cwd().openDir(pv, .{}); |
| 156 | 156 | try pvd.deleteTree(".git"); |
| 157 | 157 | } |