mfc-candidates: Improve hash expansion

`git rev-parse` is the canonical way to turn a short hash (or other
commit-ish) into a full hash.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2024-11-15 16:29:50 -05:00
parent 12cbad923d
commit 2c2f741363

View File

@ -77,7 +77,7 @@ local function read_exclude(filename)
-- Hashes are 40 chars; if less, expand short hash.
if #hash < 40 then
hash = exec_command(
"git show --pretty=%H --no-patch " .. hash)
"git rev-parse " .. hash)
end
table.insert(content, hash)
end