git: 'update-cached-checkout' recognizes truncated commit IDs.
Fixes a regression introduced inmaster602527ab97
that broke 'tests/guix-build-branch.sh'. * guix/git.scm (resolve-reference): Revert change from602527ab97
.
parent
a11522a024
commit
26965563ef
|
@ -261,7 +261,8 @@ corresponding Git object."
|
||||||
#f))
|
#f))
|
||||||
(_ #f)))
|
(_ #f)))
|
||||||
=> (lambda (commit) (resolve `(commit . ,commit))))
|
=> (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
|
(resolve `(tag . ,str))) ;definitely a tag
|
||||||
(else
|
(else
|
||||||
(catch 'git-error
|
(catch 'git-error
|
||||||
|
|
Reference in New Issue