Commit 3837311b authored by Jacob Schatz's avatar Jacob Schatz Committed by Eric Eastwood

Remove unused getBranch method.

Conflicts:
	app/assets/javascripts/repo/helpers/repo_helper.js
parent ac8393b1
...@@ -28,7 +28,7 @@ const RepoCommitSection = { ...@@ -28,7 +28,7 @@ const RepoCommitSection = {
methods: { methods: {
makeCommit() { makeCommit() {
// see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions // see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
const branch = Helper.getBranch(); const branch = Store.currentBranch;
const commitMessage = this.commitMessage; const commitMessage = this.commitMessage;
const actions = this.changedFiles.map(f => ({ const actions = this.changedFiles.map(f => ({
action: 'update', action: 'update',
......
...@@ -33,8 +33,8 @@ const RepoHelper = { ...@@ -33,8 +33,8 @@ const RepoHelper = {
? window.performance ? window.performance
: Date, : Date,
getBranch() { getFileExtension(fileName) {
return $('button.dropdown-menu-toggle').attr('data-ref'); return fileName.split('.').pop();
}, },
getLanguageIDForFile(file, langs) { getLanguageIDForFile(file, langs) {
......
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