summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/stores/utils.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-06-15 11:12:13 +0100
committerPhil Hughes <me@iamphill.com>2018-06-15 11:19:35 +0100
commit3530274b13ec4f20731f9f98ea94dabe1494072d (patch)
tree5400c31eaf71f4f9740a4666259ab987a508b547 /app/assets/javascripts/ide/stores/utils.js
parente906be2f683f6170a5ee1d5b5f104ab0e08062d1 (diff)
downloadgitlab-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.js3
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,
});