summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/stores/modules/commit/actions.js
diff options
context:
space:
mode:
authorPaul Slaughter <pslaughter@gitlab.com>2019-06-17 12:53:58 -0500
committerPaul Slaughter <pslaughter@gitlab.com>2019-06-17 14:04:35 -0500
commit894ad6f6e983cb17c7b63b4185c63a42b6203a4f (patch)
treebd3990e5b4fe0e9521287bf0c327925a82084c50 /app/assets/javascripts/ide/stores/modules/commit/actions.js
parent89a89b3230717920410de6fb6d6b7152ef41a03e (diff)
downloadgitlab-ce-59023-fix-web-ide-creating-branches-off-new-commits.tar.gz
**Why?** The branch HEAD could be changed since the IDE was opened. This leads to user's unintentionally creating commits that overwrite other changes. https://gitlab.com/gitlab-org/gitlab-ce/issues/59023
Diffstat (limited to 'app/assets/javascripts/ide/stores/modules/commit/actions.js')
-rw-r--r--app/assets/javascripts/ide/stores/modules/commit/actions.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/ide/stores/modules/commit/actions.js b/app/assets/javascripts/ide/stores/modules/commit/actions.js
index 51062f092ad..ff1255ce749 100644
--- a/app/assets/javascripts/ide/stores/modules/commit/actions.js
+++ b/app/assets/javascripts/ide/stores/modules/commit/actions.js
@@ -142,6 +142,7 @@ export const commitChanges = ({ commit, state, getters, dispatch, rootState, roo
getters,
state,
rootState,
+ rootGetters,
});
return service.commit(rootState.currentProjectId, payload);