Commit 488fdc1b authored by Aral Balkan's avatar Aral Balkan

Fix regression on branch name deduction from commit comment

parent 4dbcdcf8
......@@ -5,7 +5,7 @@
"sdk" : "org.gnome.Sdk",
"command" : "ind.ie.Gnomit",
"x-run-args" : [
"ind.ie/gnomit/gjs/tests/tag-message"
"ind.ie/gnomit/gjs/tests/message-without-body"
],
"finish-args" : [
"--share=network",
......
......@@ -244,7 +244,7 @@ var Application = GObject.registerClass({
// Try to get the branch name via a method that relies on
// positional aspect of the branch name so it should work with
// other languages.
const wordsOnBranchLine = commitCommentLines[5].split(" ")
const wordsOnBranchLine = commitCommentLines[4].split(" ")
const branchName = wordsOnBranchLine[wordsOnBranchLine.length - 1]
detail = branchName
} else if (this.isTagMessage) {
......
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