aboutsummaryrefslogtreecommitdiff
path: root/src/Package/Fetch/git.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-08 19:41:21 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:08 -0800
commitebdbbd20ace6e93b581b90075f52946b3832da93 (patch)
tree09fb393f4a4578512ddf4906c7df14df5f6f9255 /src/Package/Fetch/git.zig
parent3725f72293c87a73e0c11e74739574c7b78bb53d (diff)
downloadzig-ebdbbd20ace6e93b581b90075f52946b3832da93.tar.gz
zig-ebdbbd20ace6e93b581b90075f52946b3832da93.zip
update makeDir() sites to specify permissions
Diffstat (limited to 'src/Package/Fetch/git.zig')
-rw-r--r--src/Package/Fetch/git.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Package/Fetch/git.zig b/src/Package/Fetch/git.zig
index 1d6aa1a849..33ff982b66 100644
--- a/src/Package/Fetch/git.zig
+++ b/src/Package/Fetch/git.zig
@@ -253,7 +253,7 @@ pub const Repository = struct {
while (try tree_iter.next()) |entry| {
switch (entry.type) {
.directory => {
- try dir.makeDir(entry.name);
+ try dir.makeDir(io, entry.name, .default_dir);
var subdir = try dir.openDir(io, entry.name, .{});
defer subdir.close(io);
const sub_path = try std.fs.path.join(repository.odb.allocator, &.{ current_path, entry.name });
@@ -296,7 +296,7 @@ pub const Repository = struct {
.gitlink => {
// Consistent with git archive behavior, create the directory but
// do nothing else
- try dir.makeDir(entry.name);
+ try dir.makeDir(io, entry.name, .default_dir);
},
}
}