Skip to content
Snippets Groups Projects
Unverified Commit 6ce90bfb authored by Phil Hughes's avatar Phil Hughes
Browse files

only sends content if it exists

parent 3d5f8fb5
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -137,7 +137,7 @@ export const createCommitPayload = ({ branch, getters, newBranch, state, rootSta
action: commitActionForFile(f),
file_path: f.path,
previous_path: f.prevPath === '' ? undefined : f.prevPath,
content: f.content,
content: f.content || undefined,
encoding: f.base64 ? 'base64' : 'text',
last_commit_id: newBranch || f.deleted || f.prevPath ? undefined : f.lastCommitSha,
})),
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment