Commit 51fcfc73 authored by Jacob Schatz's avatar Jacob Schatz

Adds `raw_size` to take advantage of LFS

parent 799c8edf
......@@ -24,10 +24,6 @@ const RepoCommitSection = {
// see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
const branch = Helper.getBranch();
const commitMessage = this.commitMessage;
this.changedFiles.map((f) => {
console.log('fffff',f.newContent)
});
return;
const actions = this.changedFiles.map((f) => {
const filePath = Helper.getFilePathFromFullPath(f.url, branch);
return {
......@@ -37,7 +33,7 @@ const RepoCommitSection = {
};
});
const payload = {
branch,
branch: Store.targetBranch,
commit_message: commitMessage,
actions,
};
......
......@@ -20,7 +20,7 @@ module RendersBlob
mime_type: blob.mime_type,
name: blob.name,
extension: blob.extension,
size: blob.size
size: blob.raw_size
}
else
render json: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment