1
0
Fork 0
mirror of https://gitbruv.vercel.app/api/git/bruv/gitbruv.git synced 2025-12-20 23:24:09 +01:00
This commit is contained in:
Ahmet Kilinc 2025-12-20 17:18:41 +00:00
parent fbaaf65809
commit 54d8417488

View file

@ -36,18 +36,7 @@ function parseGitPath(pathSegments: string[]): { username: string; repoName: str
async function getRefsAdvertisement(fs: R2Fs, gitdir: string, service: string): Promise<Buffer> {
const capabilities =
service === "git-upload-pack"
? [
"multi_ack",
"thin-pack",
"side-band",
"side-band-64k",
"ofs-delta",
"shallow",
"no-progress",
"include-tag",
"multi_ack_detailed",
"symref=HEAD:refs/heads/main",
]
? ["ofs-delta", "shallow", "no-progress", "include-tag", "symref=HEAD:refs/heads/main"]
: ["report-status", "delete-refs", "ofs-delta"];
const refs: { name: string; oid: string }[] = [];