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:59:42 -0800 |
| commit | e52aee688b2e09237fca45c52d3bb4a55eda9baa (patch) | |
| tree | 8252a0ca1c3a8c80a42428121434f61d00526968 | |
| parent | 8d764da35768073c2e21ffeffa27ff2f3ab589b0 (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.
| -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 |
