mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 03:04:34 +01:00
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:
parent
12cbad923d
commit
2c2f741363
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user