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:
Evgeni Chasnovski
2025-11-06 18:42:36 +02:00
parent f2bfde9140
commit f3f5095630
2 changed files with 24 additions and 20 deletions

View File

@@ -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