Skip to content

Commit e52aee6

Browse files
committed
redmine-backporter.rb: Check remote-tracking branch
on `has_commit` check for the `backport` command. I don't maintain local "master" branch on my ruby repository for stable branch maintenance. I want just running `git fetch origin` to make it work. It should work for those who pull origin/master into their local master too.
1 parent 8d764da commit e52aee6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tool/redmine-backporter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def backport_command_string
190190
next false if c.match(/\A\d{1,6}\z/) # skip SVN revision
191191

192192
# check if the Git revision is included in master
193-
has_commit(c, "master")
193+
has_commit(c, "origin/master")
194194
end.sort_by do |changeset|
195195
Integer(IO.popen(%W[git show -s --format=%ct #{changeset}], &:read))
196196
end

0 commit comments

Comments
 (0)