From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qLLuHww9cWCzNgEAgWs5BA (envelope-from ) for ; Sat, 10 Apr 2021 07:52:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id T57cGQw9cWDDDQAAB5/wlQ (envelope-from ) for ; Sat, 10 Apr 2021 05:52:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D48131009D for ; Sat, 10 Apr 2021 07:52:10 +0200 (CEST) Received: from localhost ([::1]:52340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lV6XR-0004c7-KK for larch@yhetil.org; Sat, 10 Apr 2021 01:52:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lV6XK-0004by-GC for bug-guix@gnu.org; Sat, 10 Apr 2021 01:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39759) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lV6XK-0005vB-6R for bug-guix@gnu.org; Sat, 10 Apr 2021 01:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lV6XK-0001a0-4M for bug-guix@gnu.org; Sat, 10 Apr 2021 01:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#45187: git download defaults to origin/master Resent-From: Kyle Meyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 10 Apr 2021 05:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45187 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 45187-submit@debbugs.gnu.org id=B45187.16180338786020 (code B ref 45187); Sat, 10 Apr 2021 05:52:02 +0000 Received: (at 45187) by debbugs.gnu.org; 10 Apr 2021 05:51:18 +0000 Received: from localhost ([127.0.0.1]:51305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lV6Wc-0001Z2-2M for submit@debbugs.gnu.org; Sat, 10 Apr 2021 01:51:18 -0400 Received: from out1.migadu.com ([91.121.223.63]:23099) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lV6WW-0001Yp-7l for 45187@debbugs.gnu.org; Sat, 10 Apr 2021 01:51:17 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1618033870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lYgSMgUt+k6p61Sn6CV3yL4C8MBd4EHEFTQKsDGOG0M=; b=BOFAsanswTDqOsjbJmX4ZyMEmpUGZVO7yD3fnmf5QY+XVjMieXaOGyr4cYHqGIT5j36Fy8 U3gLpcT8RGCeyXieROsR8+kfAjjPK1Je+u33U6NxfOefCrKTvT/8PRwpjdDrzUJt6kktRn ew4rrE3amryq0jdnmW2K+2B1c5iulgtzAk4Lh/iWFfRLDwA/RojtsSCpFr4GDG4XOAg0Un qWxxWZ77iMfOkgGCtG6cZn0aG/jQjWTAR61VEbWvLrR9YejLTf7FJTO9UISMkgz3sxov1F sYdpyl/DD61AR0mtz9MOfmeF9dZmMWU7GY9Ws8pNAozJV4jxrIPVIptTC/BPsg== From: Kyle Meyer In-Reply-To: <87v98ussqy.fsf@kyleam.com> References: <87v98ussqy.fsf@kyleam.com> Date: Sat, 10 Apr 2021 01:51:08 -0400 Message-ID: <87zgy6ofg3.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ricardo Wurmus , 45187@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618033931; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=lYgSMgUt+k6p61Sn6CV3yL4C8MBd4EHEFTQKsDGOG0M=; b=ROJUuuQRXrXwmepf/tfUnVvzhxd9M8bnJjhECs6oq5YTmoD+9b6AJ6vipOb+VLn7PS0QPA NdBb0pvAJzj2SH/0J9Dkfa9lbDsS2d9SAngc0i0llvSnd9s7SC9/GLGfZ6qCnWx1Ow7mKr hp4KnbRynVorhxKXj+BDmGDUhO/8FcMFvDDaMeiXNWhu2BqPAlTY/ei0bEJ7Le1LwsbhQE 8jC2uzMRPV8iyM/B1L4jVvBbTSysZvlopW5NQ6dpA/Su8Bg70GN0jJmPakZVfcBd8M3rZS eFOmS27fwqv+RMu3UE8k4ObrMB7VRYnVTGQe7LnMExPba5KXAvUAktQnKZ3RSA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618033931; a=rsa-sha256; cv=none; b=DgQEDSUwpPl6oV1icyRy3SU2motcbfGnt93hdIAcV3pHzlytWtQgvX+jckMRIVQlWP0GKu fq+whX5dnZrqtjfJAv5klQvl8SePvtwYR96obPVn+lqj/Y2DNgpnCAz8omGmaKP89d+a4F auUPZYmjM5D0VfsWRA1UCZHW1j6mVtt0HP8v6FfM/7IFzQW6KDRGYrLh+l2DbLOje+U1JS XAwqecS9a8TSLgPZfMUll4pUXbsIWGE6PVNA0hITOG4zdTxGO1aUM17rgY+HNgQFUlALB0 oHLM/M7xoLRJ4pqXdDA8gZguEBKdbb38prx4lPFa3CVt5Sfp44gvdIcX34QD3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=BOFAsans; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: 0.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=BOFAsans; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: D48131009D X-Spam-Score: 0.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: LDGEhuZjs0JN Kyle Meyer writes: > @@ -356,6 +360,7 @@ (define* (update-cached-checkout url > > REF is pair whose key is [branch | commit | tag | tag-or-commit ] and value > the associated data: [ | | | ]. > +IF REF is the empty list, the remote HEAD is used. Sorry, here and ... > @@ -433,12 +439,13 @@ (define* (latest-repository-commit store url > (log-port (%make-void-port "w")) > (cache-directory > (%repository-cache-directory)) > - (ref '(branch . "master"))) > + (ref '())) > "Return two values: the content of the git repository at URL copied into a > store directory and the sha1 of the top level commit in this directory. The > reference to be checkout, once the repository is fetched, is specified by REF. > REF is pair whose key is [branch | commit | tag] and value the associated > -data, respectively [ | | ]. > +data, respectively [ | | ]. IF REF is the empty > +list, the remote HEAD is used. ... here should say "If" rather than "IF".