From 0a10c326d9e56154686ec94bc53bbabe6cd54341 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 24 Jul 2021 23:40:18 +0200 Subject: Cleaned up & improved the git http backend --- packages/server/src/api/util.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'packages/server/src/api/util.ts') diff --git a/packages/server/src/api/util.ts b/packages/server/src/api/util.ts index e7e7657..0314db7 100644 --- a/packages/server/src/api/util.ts +++ b/packages/server/src/api/util.ts @@ -1,7 +1,5 @@ import { Commit } from "../git/commit"; import { Repository } from "../git/repository"; -import { RequestInfo } from "../git/http"; -import { readdir } from "fs"; type VerificationResultType = "SUCCESS" | "NOT_FOUND" | "INVALID" | "ACCESS_DENIED"; @@ -44,12 +42,12 @@ export async function verifySHA(repository: Repository, sha: string): Promise