aboutsummaryrefslogtreecommitdiff
path: root/libnitrokey/command_id.h
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2018-06-21 10:40:21 +0200
committerRobin Krahl <me@robin-krahl.de>2018-06-21 10:40:21 +0200
commitafb7a48046142fe666eda64338f89677e79db705 (patch)
treea5f2ddb20e16815ffb3637a16d47235807f0211b /libnitrokey/command_id.h
parente1ef8d79809190c5ac5d540bd4aa376dcfda7e93 (diff)
downloadlibnitrokey-afb7a48046142fe666eda64338f89677e79db705.tar.gz
libnitrokey-afb7a48046142fe666eda64338f89677e79db705.tar.bz2
Fix unit test for get_library_version for release commits
`git describe` may return a tag name or <tag>-<n>-g<hash>, where <n> is the number of commits since the last tag <tag> and <hash> is the hash of the current commit. The current test case only considers the latter case. This patch adds a regular expression to handle both cases.
Diffstat (limited to 'libnitrokey/command_id.h')
0 files changed, 0 insertions, 0 deletions