#975402 libmagic-mgc: messages for Git objects have an incorrect id

Package:
libmagic-mgc
Source:
file
Description:
File type determination library using "magic" numbers (compiled magic file)
Submitter:
Vincent Lefevre
Date:
2020-11-21 17:09:07 UTC
Severity:
normal
Tags:
#975402#5
Date:
2020-11-21 17:06:55 UTC
From:
To:
The messages for Git objects have an incorrect id: only the first
sequence of decimal digits is retrieved instead of the full sequence
of hexadecimal digits. This is due to a bad regexp in
"magic/Magdir/git".

$ echo "commit d617e0c0ca8fac42361b00c8861eb2a59ab7a7d8" | file -
/dev/stdin: Git commit 617

This was fixed upstream several months ago:

https://bugs.astron.com/view.php?id=176

I've attached my patch.