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