Christian Marangi 9e49e0a6c4
scripts/getver.sh: prevent asking for negative rev-parse
With the case of asking an invalid version that is too big, getver.sh
might return an invalid output in the form of HEAD~-2260475641.

This is caused by BASE_REV - GET_REV using a negative number.

Prevent this by checking if BASE_REV - GET_REV actually return 0 or a
positive number and set REV variable accordingly. With the following
change, invalid revision number will result in unknown printed instead
of the invalid HEAD~-NUMBERS output.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-11-12 16:19:04 +01:00
..
2022-07-05 10:18:06 +02:00
2022-04-16 14:53:17 +02:00
2022-04-16 14:53:17 +02:00
2021-10-31 21:24:47 +01:00
2021-05-13 15:13:15 +02:00
2022-01-17 09:14:26 +01:00
2016-03-24 22:40:13 +01:00
2021-10-31 21:24:47 +01:00
2021-10-31 21:24:47 +01:00
2021-10-31 21:24:47 +01:00
2022-01-17 09:14:26 +01:00