me
/
guix
Archived
1
0
Fork 0

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.
Simon Tournier 2023-09-25 12:00:18 +02:00
parent be5bec47f7
commit 94f3831e5b
No known key found for this signature in database
GPG Key ID: 92F1D22C608EE7E5
1 changed files with 2 additions and 1 deletions

View File

@ -364,7 +364,8 @@ definitely available in REPOSITORY, false otherwise."
(match ref
(('commit . (? commit-id? commit))
(let ((oid (string->oid commit)))
(->bool (commit-lookup repository oid))))
(false-if-git-not-found
(->bool (commit-lookup repository oid)))))
((or ('tag . str)
('tag-or-commit . str))
(false-if-git-not-found