Christian Marangi
101988c61a
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>
(cherry picked from commit 9e49e0a6c4535d345084cc62c594be5cad23b911)
2023-11-12 16:19:39 +01:00
..
2022-02-19 13:10:01 +01:00
2021-10-30 15:00:22 +02:00
2020-01-02 23:59:20 +01:00
2017-12-08 19:41:18 +01:00
2020-11-02 08:39:49 +01:00
2022-06-28 22:20:09 +02:00
2022-07-05 10:18:06 +02:00
2020-05-19 08:05:22 +02:00
2022-04-16 14:53:17 +02:00
2022-04-16 14:53:17 +02:00
2022-02-28 15:17:11 +01:00
2021-10-31 21:24:47 +01:00
2020-03-01 21:35:59 +01:00
2017-05-02 14:33:58 +02:00
2017-05-02 14:33:58 +02:00
2021-05-13 15:13:15 +02:00
2021-05-13 15:13:15 +02:00
2022-01-17 09:14:26 +01:00
2021-05-29 13:03:07 +02:00
2011-02-27 15:39:27 +00:00
2021-05-29 13:03:07 +02:00
2020-11-18 21:50:58 +01:00
2016-04-28 16:43:28 +02:00
2022-02-26 13:36:30 +01:00
2022-11-15 14:45:50 +01:00
2023-01-12 14:59:07 +01:00
2023-01-07 01:32:58 +01:00
2021-12-29 14:06:10 +01:00
2021-11-13 10:29:41 -10:00
2022-07-24 19:53:45 +02:00
2023-01-23 19:18:05 +01:00
2022-02-15 00:24:24 +01:00
2018-07-05 01:30:57 +08:00
2020-12-22 19:11:50 +01:00
2023-06-13 14:12:27 +02:00
2020-01-01 17:01:02 +01:00
2020-08-31 11:18:06 +01:00
2023-11-12 16:19:39 +01:00
2022-04-19 22:59:50 +02:00
2023-05-09 21:32:26 +02:00
2019-01-21 16:35:40 +01:00
2023-07-15 22:24:50 +02:00
2021-10-31 21:24:47 +01:00
2020-11-13 13:17:53 +01:00
2022-11-27 13:18:29 +01:00
2016-03-24 22:40:13 +01:00
2009-01-25 19:00:43 +00:00
2023-11-02 14:44:47 +00:00
2022-03-05 18:01:04 +01:00
2019-02-25 17:36:16 +01:00
2023-07-23 16:10:08 +02:00
2022-07-20 21:52:06 +02:00
2023-07-26 15:39:24 +02:00
2023-07-13 12:05:28 +01:00
2021-05-13 15:13:15 +02:00
2023-11-02 14:44:47 +00:00
2021-10-31 21:24:47 +01:00
2015-08-25 07:46:32 +00:00
2019-06-16 16:40:08 +02:00
2016-02-01 10:43:27 +00:00
2023-08-15 17:19:05 +02:00
2016-04-28 16:43:28 +02:00
2011-03-01 05:40:38 +00:00
2019-09-01 18:38:05 +02:00
2021-10-11 11:49:14 +02:00
2020-06-02 08:37:54 +02:00
2023-06-17 12:59:37 +02:00
2020-06-02 08:33:11 +02:00
2023-04-09 09:55:57 +02:00
2023-04-09 10:01:03 +02:00
2021-10-31 21:24:47 +01:00
2023-02-03 21:22:49 +01:00
2021-10-31 21:24:47 +01:00
2020-11-12 18:21:55 +01:00
2016-06-07 11:42:52 +02:00
2019-12-31 11:41:07 +01:00
2019-12-31 11:43:15 +01:00
2019-09-14 11:43:19 +02:00
2021-12-02 20:42:58 +00:00
2019-07-03 07:45:00 +02:00
2010-04-14 22:21:15 +00:00
2022-01-17 09:14:26 +01:00
2022-09-06 08:04:53 +02:00