diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2026-01-12 16:55:40 -0800 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2026-01-12 16:55:53 -0800 |
| commit | 09cd13114a7c30a7fecae1bda726a419cd1b4bf2 (patch) | |
| tree | b1b478a127319f29f169247dcdabd8fe3d771e8e /tool | |
| parent | 7c91db9ea020f297f99095765a962284d3d08f3d (diff) | |
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.
Diffstat (limited to 'tool')
| -rwxr-xr-x | tool/redmine-backporter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
