mirror of
https://github.com/neovim/neovim.git
synced 2025-12-12 01:22:41 +00:00
fix(pack): use full hashes in lockfile and revision description
Problem: Using abbreviated version of commit hashes might be unreliable in the long term (although highly unlikely). Solution: Use full hashes in lockfile and revision description (in confirmation buffer and log). Keep abbreviated hashes when displaying update changes (for brevity).
This commit is contained in:
@@ -193,7 +193,7 @@ end
|
||||
local function git_get_hash(ref, cwd)
|
||||
-- Using `rev-list -1` shows a commit of reference, while `rev-parse` shows
|
||||
-- hash of reference. Those are different for annotated tags.
|
||||
return git_cmd({ 'rev-list', '-1', '--abbrev-commit', ref }, cwd)
|
||||
return git_cmd({ 'rev-list', '-1', ref }, cwd)
|
||||
end
|
||||
|
||||
--- @async
|
||||
|
||||
Reference in New Issue
Block a user