MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / pushToRepo

Function pushToRepo

services/app-builder/src/git/git-clone-service.test.ts:73–83  ·  view source on GitHub ↗
(
  fs: MemFS,
  refs: Array<{ oldOid: string; newOid: string; refName: string }>,
  packBytes: Uint8Array
)

Source from the content-addressed store, hash-verified

71 refs: Array<{ oldOid: string; newOid: string; refName: string }>,
72 packBytes: Uint8Array
73): Promise<void> {
74 const requestData = buildPushRequest(refs, packBytes);
75 const { result } = await GitReceivePackService.handleReceivePack(fs, requestData);
76 if (!result.success) {
77 throw new Error(`Push failed: ${result.errors.join(', ')}`);
78 }
79}
80
81type ParsedInfoRefs = {
82 service: string;
83 headOid: string;
84 capabilities: string;
85 refs: Array<{ oid: string; refName: string }>;
86};

Callers 1

Calls 3

handleReceivePackMethod · 0.80
joinMethod · 0.80
buildPushRequestFunction · 0.70

Tested by

no test coverage detected