me
/
guix
Archived
1
0
Fork 0

git: 'update-cached-checkout' recognizes truncated commit IDs.

Fixes a regression introduced in
602527ab97 that broke
'tests/guix-build-branch.sh'.

* guix/git.scm (resolve-reference): Revert change from
602527ab97.
master
Ludovic Courtès 2022-10-14 23:50:49 +02:00
parent a11522a024
commit 26965563ef
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 1 deletions

View File

@ -261,7 +261,8 @@ corresponding Git object."
#f))
(_ #f)))
=> (lambda (commit) (resolve `(commit . ,commit))))
((not (commit-id? str))
((or (> (string-length str) 40)
(not (string-every char-set:hex-digit str)))
(resolve `(tag . ,str))) ;definitely a tag
(else
(catch 'git-error