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 = { ...@@ -24,10 +24,6 @@ const RepoCommitSection = {
// see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions // see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
const branch = Helper.getBranch(); const branch = Helper.getBranch();
const commitMessage = this.commitMessage; const commitMessage = this.commitMessage;
this.changedFiles.map((f) => {
console.log('fffff',f.newContent)
});
return;
const actions = this.changedFiles.map((f) => { const actions = this.changedFiles.map((f) => {
const filePath = Helper.getFilePathFromFullPath(f.url, branch); const filePath = Helper.getFilePathFromFullPath(f.url, branch);
return { return {
...@@ -37,7 +33,7 @@ const RepoCommitSection = { ...@@ -37,7 +33,7 @@ const RepoCommitSection = {
}; };
}); });
const payload = { const payload = {
branch, branch: Store.targetBranch,
commit_message: commitMessage, commit_message: commitMessage,
actions, actions,
}; };
......
...@@ -20,7 +20,7 @@ module RendersBlob ...@@ -20,7 +20,7 @@ module RendersBlob
mime_type: blob.mime_type, mime_type: blob.mime_type,
name: blob.name, name: blob.name,
extension: blob.extension, extension: blob.extension,
size: blob.size size: blob.raw_size
} }
else else
render json: { 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