diff options
author | Phil Hughes <me@iamphill.com> | 2018-06-15 11:12:13 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-15 11:19:35 +0100 |
commit | 3530274b13ec4f20731f9f98ea94dabe1494072d (patch) | |
tree | 5400c31eaf71f4f9740a4666259ab987a508b547 /app/assets/javascripts/ide/stores/utils.js | |
parent | e906be2f683f6170a5ee1d5b5f104ab0e08062d1 (diff) | |
download | gitlab-ce-3530274b13ec4f20731f9f98ea94dabe1494072d.tar.gz |
only return last_commit_sha in the JSONide-add-last-commit-id-to-api-call
Diffstat (limited to 'app/assets/javascripts/ide/stores/utils.js')
-rw-r--r-- | app/assets/javascripts/ide/stores/utils.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/stores/utils.js b/app/assets/javascripts/ide/stores/utils.js index 15305684aed..10368a4d97c 100644 --- a/app/assets/javascripts/ide/stores/utils.js +++ b/app/assets/javascripts/ide/stores/utils.js @@ -17,6 +17,7 @@ export const dataStructure = () => ({ changed: false, staged: false, lastCommitPath: '', + lastCommitSha: '', lastCommit: { id: '', url: '', @@ -112,7 +113,7 @@ export const createCommitPayload = ({ branch, newBranch, state, rootState }) => file_path: f.path, content: f.content, encoding: f.base64 ? 'base64' : 'text', - last_commit_id: newBranch ? undefined : f.lastCommit.id, + last_commit_id: newBranch ? undefined : f.lastCommitSha, })), start_branch: newBranch ? rootState.currentBranchId : undefined, }); |