Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp70216imu; Wed, 7 Nov 2018 13:09:10 -0800 (PST) X-Google-Smtp-Source: AJdET5e4EQa7iw2YrULieIcAkixEzp/8mg9d2g8a0L22MoyCShXyimDn7TNcg8u0rsJvbI1usyYc X-Received: by 2002:a63:f710:: with SMTP id x16mr1592703pgh.322.1541624950185; Wed, 07 Nov 2018 13:09:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541624950; cv=none; d=google.com; s=arc-20160816; b=CIuoc9tKpkeXl7bw1eIEXWAGdunZ53j9T4Eo6gy+2ABQQuHUa9uK/ek1p9Xwrbrqst qPJdMDmA5A5NLV0sLaQfGgp/wrYygxKs2NVTLAMggKQ4DUETkpYMQJLIsaP2AG8vUOT/ Yj+8ja4jIMIj3+EnxhmBmfA/tiauwoe+EBXWGl/ju7QypRzGMO00rAD44jDHQy9G7/vq 4EY46VE3DjOTFe7nI4AEchJ35rRszSKGeUNpzC6ofyz1IWJcWLJXNvCZVRl1nuZa9VGX BlyBFbc6wB+yLEzWxjcG/jo81e/M43VdZAj7S/0bZFHuEMcjjtrpXmnOIMDcTWAouJvA yY/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:cc:to:subject:from :content-transfer-encoding:mime-version:message-id:date :dkim-signature; bh=/HZOhe/zx8ye9Sw/mM8+jB4iBYtsUHqOS+8s5/4FPRg=; b=Qko66MAMzbi9IYeTdDW5yTY7PVVx9fKzjKOlpHrvHGUamUgQgohANYOuNwPPdZ2yRZ sCGaToUMba8nwobYvVFpZOj5XSJN1V1HT45/EpwfChVWc1nlOqmDbg8e2cYFQTBbCd6h hezfk4n4kfeLr/oKOCqG5ZNkI8PzXPQ5pm6mgVK+Tkg9h2t756vCaOJybxP+Fw8iPJG1 SCTX7XknRPk0EswUF/pZHvwl0eCzUtMGmYI0MHWHXg3fzC1AaS5f/J+WRrqaV6kcqfUJ 76rXBA+bJpH3B/uqgaYEYd38ClWQqgyjhmkaUlf4y9ejj4V3FnZNmlcIM5UztMdAqwUA GQ6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@genki.is header.s=dkim header.b=VCzRNxd2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=genki.is Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f16si1361512pgb.140.2018.11.07.13.08.14; Wed, 07 Nov 2018 13:09:10 -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=@genki.is header.s=dkim header.b=VCzRNxd2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=genki.is Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727213AbeKHGjl (ORCPT + 99 others); Thu, 8 Nov 2018 01:39:41 -0500 Received: from genki.is ([104.200.25.21]:43230 "EHLO genki.is" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbeKHGjl (ORCPT ); Thu, 8 Nov 2018 01:39:41 -0500 Received: by genki.is (OpenSMTPD) with ESMTP id 964ecac3; Wed, 7 Nov 2018 21:07:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=genki.is; h=date :message-id:mime-version:content-transfer-encoding:content-type :from:subject:to:cc:in-reply-to:references; s=dkim; bh=BNry9EZbX c5va3/O0oqkiexIwqk=; b=VCzRNxd2q7UvxqxIeT0gbyImqa7UIQUkWEbyFaEU1 JLVIepqNGuvaBkxW92RP3EtuQL7z0hKI2631bgnJwH3MHQwlmIZZPy3lF/L9vbym q8Qm7+VqzPOzqQdVZR0GfTk4JE5iljNP3aayUqPzp6u2dYFRPtz3vAUoF8jp9Xqn mdnNU2PmZIucS0VGW77sR2k8l9guQ9gH208lzoJ6EHAWjUcn7JHpmpL4nlgg8nZb plyoheZ39unfJcadnyg/c4Hzzv85tdoa25y5OJZb6z7dDTz8h4HyPCopw3V0WIdS qagrBT5ylT1kdYToX7qkC4oFn2cQhAFKPu/LUmxcWG25g== Received: by genki.is (OpenSMTPD) with ESMTPSA id 7f3f5a01 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 7 Nov 2018 21:07:32 +0000 (UTC) Date: Wed, 07 Nov 2018 13:07:31 -0800 Message-ID: <20181107.210731.330601031@genki.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 From: Genki Sky Subject: Re: [PATCH] Revert "scripts/setlocalversion: git: Make -dirty check more robust" To: Guenter Roeck Cc: Brian Norris , lists@nerdbynature.de, yamada.masahiro@socionext.com, Linux Kernel In-Reply-To: <20181107205514.GB12273@roeck-us.net> References: <1541527838-4585-1-git-send-email-linux@roeck-us.net> <20181106.192305.406697677@genki.is> <20181107022156.GA254567@google.com> <20181107184435.GA168339@google.com> <20181107.204358.257636196@genki.is> <20181107205514.GB12273@roeck-us.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Nov 2018 12:55:14 -0800, Guenter Roeck wrote: > I do not think it is a good idea to create a random file in the .git directory > under any circumstance, and much less so if an output directory was specified, > no matter if the path is read-only or not. I also still think that it is a > bad idea to touch the source tree if an output directory was specified. > It defeats the purpose of specifying an output directory. I was thinking of touching a pre-existing file like .git/config or .git/description, which I was hoping would be harmless. But sounds like that's still not desired? Okay, I guess one approach is to only refresh the index if $objtree == $srctree, by passing some flag to scripts/setlocalversion from scripts/package/Makefile. Is that what you're thinking? Feels a little strange, but it seems it'd satisfy everyone. > Ubuntu 16.04 ships with git version 2.7.4. Okay. I guess --no-optional-locks is a no-go then.