From 56cee947fa467334d4a8b41e6542b02e5669e8ab Mon Sep 17 00:00:00 2001 From: Romain GARBAGE Date: Tue, 26 Aug 2025 16:05:32 +0200 Subject: [PATCH] guix: inferior: Use channel-reference to get a Git reference. * guix/inferior.scm (channel-full-commit): Use channel-reference to get a Git reference. Change-Id: Ia07f8d202ba1df1497d2763d8d49d547c6955ca6 --- guix/inferior.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guix/inferior.scm b/guix/inferior.scm index 8066cce2fcf..680fe6a805b 100644 --- a/guix/inferior.scm +++ b/guix/inferior.scm @@ -872,7 +872,8 @@ prefix, resolve it; and if 'commit' is unset, fetch CHANNEL's branch tip." (branch (channel-branch channel))) (if (and commit (commit-id? commit)) commit - (let* ((ref (if commit `(tag-or-commit . ,commit) `(branch . ,branch))) + (let* ((ref (if commit `(tag-or-commit . ,commit) + (channel-reference channel))) (cache commit relation (update-cached-checkout (channel-url channel) #:ref ref