Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changes/unreleased/Fixed-20260604-205235.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Fixed
body: Working path was de-allocator before use. This cause the origins not to be configured correctly. This bug was introduced during the zig 0.16.0 upgrade.
time: 2026-06-04T20:52:35.308341822+01:00
4 changes: 2 additions & 2 deletions src/root.zig
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ pub fn linkGit(io: std.Io, path: std.Io.Dir) !void {

pub fn setupOrigin(allocator: std.mem.Allocator, io: std.Io, path: std.Io.Dir) !void {
const _path = try path.realPathFileAlloc(io, ".", allocator);
allocator.free(_path);
defer allocator.free(_path);
const cmd = [_][]const u8{
"git",
"-C",
Expand All @@ -260,7 +260,7 @@ pub fn setupOrigin(allocator: std.mem.Allocator, io: std.Io, path: std.Io.Dir) !

pub fn fetchOrigin(allocator: std.mem.Allocator, io: std.Io, path: std.Io.Dir) !void {
const _path = try path.realPathFileAlloc(io, ".", allocator);
allocator.free(_path);
defer allocator.free(_path);
const cmd = [_][]const u8{ "git", "-C", _path, "fetch", "-p", "origin" };
const result = std.process.run(allocator, io, .{
.argv = &cmd,
Expand Down
Loading