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