aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/routes/api/v1/repo/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/routes/api/v1/repo/index.ts')
-rw-r--r--packages/server/src/routes/api/v1/repo/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/server/src/routes/api/v1/repo/index.ts b/packages/server/src/routes/api/v1/repo/index.ts
index b1b1030..bcd2e5c 100644
--- a/packages/server/src/routes/api/v1/repo/index.ts
+++ b/packages/server/src/routes/api/v1/repo/index.ts
@@ -19,7 +19,7 @@ declare module "fastify" {
function addHooks(fastify: FastifyInstance, opts: FastifyPluginOptions): void {
fastify.addHook("preHandler", async(req: CoolFastifyRequest, reply) => {
- const repository = await Repository.open(opts.config.settings.base_dir, req.params.repo, req.query.branch).catch((err: BaseError) => err);
+ const repository = await Repository.open(opts.config.settings.git_dir, req.params.repo, req.query.branch).catch((err: BaseError) => err);
if(repository instanceof BaseError) {
reply.code(repository.code).send({ error: repository.message });