From 22df7f7ae1c63d5275156c13202ee2cba8edfe30 Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Tue, 28 Jan 2020 14:07:27 -0800 Subject: [PATCH] fix(proxy-server): fix entriesByFiles implementation (#3161) --- .../netlify-cms-proxy-server/src/middlewares/localGit/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/netlify-cms-proxy-server/src/middlewares/localGit/index.ts b/packages/netlify-cms-proxy-server/src/middlewares/localGit/index.ts index 3514d451..b1bf3bbf 100644 --- a/packages/netlify-cms-proxy-server/src/middlewares/localGit/index.ts +++ b/packages/netlify-cms-proxy-server/src/middlewares/localGit/index.ts @@ -309,7 +309,7 @@ export const localGitMiddleware = ({ repoPath }: Options) => { const entries = await runOnBranch(git, branch, () => entriesFromFiles( repoPath, - payload.files.map(file => path.join(repoPath, file.path)), + payload.files.map(file => file.path), ), ); res.json(entries);