Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix how version_info omits non-numeric fields
For gitpython-developers#1833. This makes version_info parsing stop including fields after the first non-numeric field, rather than skipping non-numeric fields and including subsequent numeric fields that then wrongly appear to have the original position and significance of the dropped field. This actually stops at (rather than merely after) a non-numeric field, i.e., potentially parseable fields that are not fully numeric, such as "2a", are stopped at, rather than parsed as "2".
- Loading branch information