Skip to content
Snippets Groups Projects

Fix Gerrit change ref string prefix

Merged Warren Gifford requested to merge fix-gerrit-ref-string-prefix into main

Created by: marekweb

Fix the format for the ref string for Gerrit changes, which causes a bug when the change ID is longer than two characters.

A change ref has the format refs/changes/X/Y/Z where X is the last two digits of the change number, Y is the entire change number, and Z is the patch set. For example, if the change number is 263270, the ref would be refs/changes/70/263270/2 for the second patch set.

Source: Gerrit documentation

Merge request reports

Merged by avatar (Jul 13, 2025 5:07am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading