╭ changed ───╮ │src/fork.zig│ ╰────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │49 input: CreateInput, │ │50 ) ![]u8 { │ │51 if (!evt.Patch.fieldsValid(input.title, input.tags)) return error.InvalidPatch; │ │52 + if (!evt.Patch.branchValid(input.target_branch)) return error.InvalidTargetBranch;│ │53 │ │54 // get the fork id and path │ │55 const fork_id = try evt.parseEventId(&input.id); │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │73 defer allocator.free(target_path); │ │74 var target_repo = try rp.Repo(.xit, repo_opts).open(io, allocator, .{ .path = target_path, .require_repo_root = true });│ │75 defer target_repo.deinit(io, allocator); │ │75 - if (!rf.validateName(input.target_branch)) return error.InvalidTarget; │ │76 if ((try target_repo.readRef(io, .{ .kind = .head, .name = input.target_branch })) == null) return error.TargetNotFound;│ │77 │ │78 // create the fork repo dir │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯