╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Events.zig ───────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
942 try evt.consume(.local, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &.{}); 943 944 const push_refspec = try allocator.print("refs/heads/{s}:refs/heads/{s}", .{ evt.events_ref.name, evt.events_ref.name }); 945 defer allocator.free(push_refspec); 946 message.clearRetainingCapacity(); 947 repo.push(io, allocator, remote_name, push_refspec, false, push_transport_opts) catch |err| { 948 if (err == error.ServerReportedError and message.written().len != 0) return try allocator.dupe(u8, message.written()); 949 return err; 950 }; 951 message.clearRetainingCapacity(); 952 repo.fetch(io, allocator, remote_name, fetch_opts) catch |err| { 953 if (err == error.ServerReportedError and message.written().len != 0) return try allocator.dupe(u8, message.written()); 954 return err; 955 }; 956 }, 957 } 958 }, 959 } 960 return null; 961 } 962