v3.0.0
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQJLBAABCgA1FiEECnaesFM5uTvdiZXtDDr2ZJ/8IQIFAlzb3CoXHGRwdXJzZWhv
dXNlQGNvbGxhYi5uZXQACgkQDDr2ZJ/8IQLw9w//R+CcH8x3ye2uiYbSi1E3lPGv
ub3jGzl76uAKOO9CUKaEf30wkEvxYSsOBD5WPznSShvrcPFuh7PC9JJpX0GdAoqh
/xBfDFNZAZoFI9UmXDqejUQiuzBEW8cTNwXduE1PXIe9rfCbPG9oRSgkfAln+HHI
28vJd1S1ATijaA+tYerWHh6vZvWRvBn7/C/Y/atsJ0VxiJxSXn7zXtGtTiBa8utz
zZ87BwSB3z8CJXupLnuJc55Hz7mF+okYepkmbSk5JApdWOwvF5DmLMC3jNoM12FN
EssZ7P4T5rRNYTl2Z1+f0OQuhZ8Pg7L2ehq5C4SOM3VGhhKy3V+GqVPPkNkDrfH4
UHMszQ9OzEpJivH0RClhh9nbXdqsIwoJ/d9YAtSVpOZxRm2p6M8rJhZZhQ7m3VoN
YObUP7rWvhfLkJvv/bq8AbTaKQ8vcqFb3nLHTQTkFFVKu1hGKAcm91nQFR2nu3hm
wZDRiM9XplMvrcQ/M1Tak9lTm6wGGf01HrHNgl+uCZAr+JISpNQl60OD0fLBmIND
8ppWdCBdQs7uw7XLE3oVtbi3irPNvv5BWi1Q4lC2u5iXCRBvE4hBuIUI07nCC6/z
LbzPvc2MwmPLbKNnzr248wnuSBEZg827oQDPtJOuU9PXS32sRxyT/8XlSmAaR9Ht
1NuiKKyvWF76jOkCk8s=
=CGbk
-----END PGP SIGNATURE-----
GerritVersionBranch: Fix branch detection for 3.0.0-rcx versions

The detection assumes that any version string that includes "-" in
the 'minor' version is a git describe generated version, such as:

  2.16.8-17-gc8b633d5ce

and treats it as the 'next' version. This logic does not take into
account that the latest release version 3.0.0 has the explicit trailing
".0" on it, so the version "3.0.0-rc3" is parsed incorrectly and "master"
is returned.

Change the condition to check for "-g" instead, since "g" is always
included before the abbreviated sha1 in a git describe version.

Add tests to confirm that it behaves as expected for various forms
of version string.

Change-Id: Ifab49a4d3985acce0dbdcbe54d89460bd7c3f027
2 files changed
tree: 97277e631225217766bf61cccfc3eaac16a1ad1f
  1. .gitignore
  2. BUCK
  3. BUILD
  4. LICENSE
  5. README.md
  6. src/
README.md

plugin-manager

Gerrit web-based plugin manager.

To enable this plugin, please look at the configuration guide