feat: GitLab LFS Support (#346)
This commit is contained in:
parent
8be590ea89
commit
41fd5fd33c
@ -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<Blob | string>(parseText ? this.responseToText : this.responseToBlob);
|
||||
return content;
|
||||
|
@ -79,3 +79,7 @@ backend: {
|
||||
},
|
||||
```
|
||||
</CodeTabs>
|
||||
|
||||
## Git Large File Storage (LFS)
|
||||
|
||||
The GitLab backend **does** support [git-lfs](https://git-lfs.github.com/).
|
||||
|
Loading…
x
Reference in New Issue
Block a user