Commit 6ce90bfb authored by Phil Hughes's avatar Phil Hughes

only sends content if it exists

parent 3d5f8fb5
...@@ -137,7 +137,7 @@ export const createCommitPayload = ({ branch, getters, newBranch, state, rootSta ...@@ -137,7 +137,7 @@ export const createCommitPayload = ({ branch, getters, newBranch, state, rootSta
action: commitActionForFile(f), action: commitActionForFile(f),
file_path: f.path, file_path: f.path,
previous_path: f.prevPath === '' ? undefined : f.prevPath, previous_path: f.prevPath === '' ? undefined : f.prevPath,
content: f.content, content: f.content || undefined,
encoding: f.base64 ? 'base64' : 'text', encoding: f.base64 ? 'base64' : 'text',
last_commit_id: newBranch || f.deleted || f.prevPath ? undefined : f.lastCommitSha, last_commit_id: newBranch || f.deleted || f.prevPath ? undefined : f.lastCommitSha,
})), })),
......
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