diff --git a/packages/core/src/backends/gitlab/API.ts b/packages/core/src/backends/gitlab/API.ts index c8c2983e..d3d98701 100644 --- a/packages/core/src/backends/gitlab/API.ts +++ b/packages/core/src/backends/gitlab/API.ts @@ -221,7 +221,7 @@ export default class API { const fetchContent = async () => { const content = await this.request({ url: `${this.repoURL}/repository/files/${encodeURIComponent(path)}/raw`, - params: { ref: branch }, + params: { ref: branch, lfs: 'true' }, // lfs=true means that even if the file is stored in LFS, return the content cache: 'no-store', }).then(parseText ? this.responseToText : this.responseToBlob); return content; diff --git a/packages/docs/content/docs/gitlab-backend.mdx b/packages/docs/content/docs/gitlab-backend.mdx index fde3e911..ef2e69dd 100644 --- a/packages/docs/content/docs/gitlab-backend.mdx +++ b/packages/docs/content/docs/gitlab-backend.mdx @@ -79,3 +79,7 @@ backend: { }, ``` + +## Git Large File Storage (LFS) + +The GitLab backend **does** support [git-lfs](https://git-lfs.github.com/).