guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: git: Restore 'false-if-git-not-found' in 'referen


From: guix-commits
Subject: branch master updated: git: Restore 'false-if-git-not-found' in 'reference-available?'.
Date: Mon, 25 Sep 2023 06:08:29 -0400

This is an automated email from the git hooks/post-receive script.

zimoun pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 94f3831e5b git: Restore 'false-if-git-not-found' in 
'reference-available?'.
94f3831e5b is described below

commit 94f3831e5bb1e04eeb3a0e7d31a0675208ce6f4c
Author: Simon Tournier <zimon.toutoune@gmail.com>
AuthorDate: Mon Sep 25 12:00:18 2023 +0200

    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.
---
 guix/git.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guix/git.scm b/guix/git.scm
index 1b3355109e..b7182305cf 100644
--- a/guix/git.scm
+++ b/guix/git.scm
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]