git: Restore 'false-if-git-not-found' in 'reference-available?'.
* guix/git/scm (reference-available?): Add 'false-if-git-not-found' for the case 'commit.
This commit is contained in:
parent
be5bec47f7
commit
94f3831e5b
|
@ -364,7 +364,8 @@ definitely available in REPOSITORY, false otherwise."
|
||||||
(match ref
|
(match ref
|
||||||
(('commit . (? commit-id? commit))
|
(('commit . (? commit-id? commit))
|
||||||
(let ((oid (string->oid commit)))
|
(let ((oid (string->oid commit)))
|
||||||
(->bool (commit-lookup repository oid))))
|
(false-if-git-not-found
|
||||||
|
(->bool (commit-lookup repository oid)))))
|
||||||
((or ('tag . str)
|
((or ('tag . str)
|
||||||
('tag-or-commit . str))
|
('tag-or-commit . str))
|
||||||
(false-if-git-not-found
|
(false-if-git-not-found
|
||||||
|
|
Loading…
Reference in New Issue