Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3970857ybi; Mon, 27 May 2019 08:45:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYpUfNBchyMuRN6ZmAnpSXAziRM86iOOhRxxSVJflgOkZpFesOIUMV7HoSQ5q9yS0onmEs X-Received: by 2002:a17:90a:9f93:: with SMTP id o19mr32539343pjp.70.1558971928222; Mon, 27 May 2019 08:45:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558971928; cv=none; d=google.com; s=arc-20160816; b=e/TDQ4ODInpbVGBJfF4IpMu7JdQnBOmtCCXLy67NiUaKVPavYYhTqwGo4AurZR6Ty0 Yqtq4nYgTuD08lgGGnpjKwOLWhJEV9CqZqpUhW9Uic/ihq/JhHPvtm53Sbs5zuDqIOCj 8VkK8biiYMVwmCtTU7kNsOukim4ph8C2RptPLm9fpKLp5FjW8mZheZCtn9wVJXqng8d7 fFOl6vJT6PFy7eUljYcXzhk3tt5SrhrILdCtsXkus7WP6Of7lf0/lUPs3xSQ+mufzZxQ ZgNU9Sp0+B7AzsWpMv1wBHwMlDk4ZG9v2i9Y7vmvNpPsCSLnNntvqJlhmgb5n5ctVL8+ hvQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=2A4/Dy7CeUNWJQHbbLk0HO1r8qYMXPrMtWyOg+ikpyk=; b=emRHOJ3kzyTTJvcYoPxYHqi5DaehYbU6uuhhloMBhBxsqUay8Knplw2lRVthWZ9rwA FwEDXLyS+63189Z/VyVH0AsxQABvaMdyNKdO0YDev4hiyg5bkZcV+D2LZicyY3f7EAU6 Fi6NW/hKDO8cQXUa9v8X9ZKVi9kJM/mKrLSl5ZYynLE7N4+b2WP+sXlzmSdO3hwoFkhi dvq+0f1ue+vCX1ykQC6vfmgMtjy4d2Zz65siwiBDxq35UX1XlFRas4T5OSZvhk4QejvI P1ErKxMdUOHPeQNN/01DV40l17378yAws4g/R5lVHAfKfo4vp4WQzE31dPx7784JiYqO tNFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k24si19037804pfk.195.2019.05.27.08.45.13; Mon, 27 May 2019 08:45:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726202AbfE0PoK (ORCPT + 99 others); Mon, 27 May 2019 11:44:10 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:45511 "EHLO mail-wr1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfE0PoK (ORCPT ); Mon, 27 May 2019 11:44:10 -0400 Received: by mail-wr1-f50.google.com with SMTP id b18so17259482wrq.12 for ; Mon, 27 May 2019 08:44:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2A4/Dy7CeUNWJQHbbLk0HO1r8qYMXPrMtWyOg+ikpyk=; b=rn87ZKkRswkp6xaHFggHfpbYjtNTCW9E1rPbKwuFO3LdDBvYSK86wbp3vGylYb5D7G 9cD7N7I5dOQQaB2xxJDVmKbTtmtFAqBcqUp2IXltoElxv0xxYuL/LK/hdJH0gpKJsEcB O6AYJQRm0y30oezGVlaf82HFvNx+9/UB29KLeKghWUatN94bZe07VMTYHZPyWknGhBkR ei/BfVUf4Y6dtxQf6ZbxT1IUTwe0ibKOAOCzd/BJHYSBUBCzZ+DSqp7X76cx633wqCyw ek/M0uCjtRXDiITHOMKUyb7gET6/+C8W10g8Lh/Bf2O2PL+WlYRsZE0rqHuLfFL5IeD2 djFg== X-Gm-Message-State: APjAAAXSA2EezQ8KUxDAW3PwOe+QUDRTI6m50qWlMgcHCgL+oG423hc0 lajrB6CPexa5RgglMqxAjuyE5A== X-Received: by 2002:adf:ef8d:: with SMTP id d13mr6429556wro.60.1558971848967; Mon, 27 May 2019 08:44:08 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:c92d:f9e8:f150:3553? ([2001:b07:6468:f312:c92d:f9e8:f150:3553]) by smtp.gmail.com with ESMTPSA id s62sm22814951wmf.24.2019.05.27.08.44.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 May 2019 08:44:08 -0700 (PDT) Subject: Re: [RFC/PATCH] refs: tone down the dwimmery in refname_match() for {heads,tags,remotes}/* To: Junio C Hamano , =?UTF-8?B?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= Cc: git@vger.kernel.org, Linus Torvalds , Linux List Kernel Mailing , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , KVM list , Michael Haggerty References: <20190526225445.21618-1-avarab@gmail.com> <5c9ce55c-2c3a-fce0-d6e3-dfe5f8fc9b01@redhat.com> <874l5gezsn.fsf@evledraar.gmail.com> From: Paolo Bonzini Message-ID: Date: Mon, 27 May 2019 17:44:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/05/19 17:39, Junio C Hamano wrote: > I do not think lightweight vs annotated should be the issue. The > tag that the requestor asks to be pulled (from repository ../b) > should be what the requestor has locally when writing the request > (in repository .). Even if both tags at remote and local are > annotated, we should still warn if they are different objects, no? Right, lightweight vs annotated then is the obvious special case where one of the two is a commit and the other is a tag, hence they ought not to have the same SHA1. I'll take a look. Paolo