From 09cd13114a7c30a7fecae1bda726a419cd1b4bf2 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Mon, 12 Jan 2026 16:55:40 -0800 Subject: 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. --- tool/redmine-backporter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb index 7f08eb8d1a..95a9688cb2 100755 --- a/tool/redmine-backporter.rb +++ b/tool/redmine-backporter.rb @@ -190,7 +190,7 @@ def backport_command_string next false if c.match(/\A\d{1,6}\z/) # skip SVN revision # check if the Git revision is included in master - has_commit(c, "master") + has_commit(c, "origin/master") end.sort_by do |changeset| Integer(IO.popen(%W[git show -s --format=%ct #{changeset}], &:read)) end -- cgit v1.2.3