Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3106962imj; Mon, 11 Feb 2019 14:06:01 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibx+T6idEI+hK/Vpi0YOD6Fj0FUtd65Na5ZJ7gyqaaf1r4jFEfepUS5zbjppyXtLfihYEln X-Received: by 2002:a62:4d45:: with SMTP id a66mr510660pfb.52.1549922761356; Mon, 11 Feb 2019 14:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549922761; cv=none; d=google.com; s=arc-20160816; b=f9Ntkhx2nxSDiaoucu1D8LVz6jxdUtTk7FQab39d1j0dKW1jbaMMafMat6txbgVQag yBgzC+Spxgf+sZlYvLfGARCDfZbk7OQy1msVOdrEpTtyKU04IPj4zRUulh/JRkgZA3rR uTOByA3VGtLKtJIVFrXvwZIHnQn/JIIhahzxoRojI/euBRziGU0BOfBBetnaMBvquFPe dyknWNZ76QAHaMHcowEivo7f6gEqlXwxHctS0Yl+5c6titA/BLJ8JCWE/9p0F464PZvw ak4nmE4vXkHR76gwplQrzSpeFOTQDBfsuXqlclpUhB8gv7vuFIT+tKBBkBy8N8UzbAmM NiKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=uclnA6iShABJh4c5ojTLgu+bzDzNObpzkIwzVTASP2M=; b=P/ZWnNSTI+kc7GL0pFYTis/ElK/6XBdUnhjMBsDwWUv/DgEAlbhw0faaVlEfaVblSA 250LNNtCFu0Coj+YZqiNkivhjJ+PFqAllsgMgY6o3oIdKogNP/5Oz13jw7LEXNY12IBZ HJcYFBDhSAF6uz3q3czIlJZ63G/LLfWT8og6NCr901TsZLlRXKx5A7rg9qKXFWHQMRgD bkr9o8ZmDlkByExu1PiRgU5k2h9fLAS9mI7QRL9WmZ0d/NSo25SFNbkCbez1NNL21omq 0qBr7PalroKL2Yh+p/MqAwOcMD8UwP+zrw1VfWmDe9g9EnLVh0m9TvIYbg/f9eTlyXL/ KMUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=cnOG35KS; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u20si3855585pgh.147.2019.02.11.14.05.44; Mon, 11 Feb 2019 14:06:01 -0800 (PST) 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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=cnOG35KS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727118AbfBKWE2 (ORCPT + 99 others); Mon, 11 Feb 2019 17:04:28 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:35126 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726378AbfBKWE2 (ORCPT ); Mon, 11 Feb 2019 17:04:28 -0500 Received: by mail-lj1-f196.google.com with SMTP id j13-v6so435148ljc.2 for ; Mon, 11 Feb 2019 14:04:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=uclnA6iShABJh4c5ojTLgu+bzDzNObpzkIwzVTASP2M=; b=cnOG35KS0iJ94QrEONEnjElrQ1lTfGab+chRa8IGy82d+NXrgJnaQ4WKpqEUFua3B/ BI+7g7bpV39yexXeazSHtYHaVZciBZytN3cu9xhblOb99wg6Rw7xjrCLIBpu4KbLTr7A Qxyv9wBvjQb7XTgWRgXIB1rn+tZM11slekwpM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=uclnA6iShABJh4c5ojTLgu+bzDzNObpzkIwzVTASP2M=; b=PB1/ZQleSDamnlWAx0obt5kdpSC/E2Bpqp3KdLE9VDmSWvXNeOfh2MaQdGk0fDmlCc 30/BYhz5A8zN2zIaBVWM11eGpXgjXHC/LcTaVguG6XGl/svs0MXRE/546qBcB0Rtl6T0 cCmypdcAfJgBFhGmp9ac9UvGIJh4TW5mi2UM3jBtmhN2HYxSTaJO87VUVcqcYo8pMVPU 5XDwZ3RnR2WqcAtcCsMwCEA0SST6FxGRPdyrXl2sMYH8Fpy6Z0e9jL58R0bNjUvDKsvW 0e+I3H3LrrGLu7+vOsYZr0KDssgLBDf0z0tBBYzs0O0eqXvVVWERN77yQ1dO4MOsOFgI hw5w== X-Gm-Message-State: AHQUAuZu5FukMazp86bYe5/CvEWsuCidO6zyd+KOwAonCEHDQi1BRL60 MLDgWAaiBHNM1jmrcYPugsGqfRJAt8o= X-Received: by 2002:a2e:9e55:: with SMTP id g21-v6mr217125ljk.139.1549922666302; Mon, 11 Feb 2019 14:04:26 -0800 (PST) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com. [209.85.208.176]) by smtp.gmail.com with ESMTPSA id x26sm1555260lfe.45.2019.02.11.14.04.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 14:04:25 -0800 (PST) Received: by mail-lj1-f176.google.com with SMTP id e17-v6so401394lja.8 for ; Mon, 11 Feb 2019 14:04:24 -0800 (PST) X-Received: by 2002:a2e:96c9:: with SMTP id d9-v6mr240461ljj.105.1549922664252; Mon, 11 Feb 2019 14:04:24 -0800 (PST) MIME-Version: 1.0 References: <20190210041721.GA2805@localhost.localdomain> <154977271617.2362.11794417398216386913.pr-tracker-bot@kernel.org> <20190211031921.GA1799@localhost.localdomain> <20190211201619.GA8065@work> In-Reply-To: <20190211201619.GA8065@work> From: Linus Torvalds Date: Mon, 11 Feb 2019 14:04:08 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Thermal-SoC management fixes for v5.0-rc6 To: Linus Torvalds , Eduardo Valentin , pr-tracker-bot@kernel.org, Rui Zhang , ACPI Devel Maling List , Linux PM , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 11, 2019 at 12:16 PM Konstantin Ryabitsev wrote: > > Okay, so I need guidance on the proper behaviour here. As this request > didn't use the magic wording for the commit-id (as generated by > git-request-pull), we ended up trying to look up the remote. The remote > specified was: > > git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal fixes > > Since it's a short refname, we first try to look it up as a tag: No, you don't do even that. The name is "fixes". But you seem to match it with one of these: > $ git ls-remote git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal fixes^{} > a6d25f4c951b8b28f2eaec6f891ff834622532f2 refs/tags/omap-for-v3.10-rc1/fixes^{} > 77319669af37a1cfc844b801e83343b37e3c7e13 refs/tags/omap/fixes^{} *NEITHER* of which is a tag named "fixes". One is named "omap-for-v3.10-rc1/fixes" and the other is a tag named "omap/fixes". Notice? What git will do is (a) Never *ever* match against a partial name. git matches against this list of patterns: "%.*s", "refs/%.*s", "refs/tags/%.*s", "refs/heads/%.*s", "refs/remotes/%.*s", "refs/remotes/%.*s/HEAD", so "fixes" can match "refs/heads/fixes" and "refs/tags/fixes" (or a *remote* called "fixes"), but it can never match against "refs/tags/omap/fixes". (b) If you have an actual ambiguous name, git will indeed pick the first from that list (so tags before branches, but also HEAD before a tag called HEAD), but it will generally also warn: warning: refname 'xyz' is ambiguous. So using "ls-remote" the way you are actually gives *way* more matches than it should. The ls-remote pattern is really just a grep pattern, not an actual ref lookup. So if you want to look up tag 'x', you really need to match on 'refs/tags/x' exactly. But that does explain why you thought it matched. Anyway, the _real_ merge for that pull request has now happened, and is commit aa0c38cf39de. Linus