From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: project.el: git submodules? Date: Tue, 12 May 2020 22:28:00 +0300 Message-ID: <21d66bf4-5cae-56b7-5c59-9257e887b672@yandex.ru> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="51371"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: emacs-devel@gnu.org To: Gary Oberbrunner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 12 21:28:50 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYaaA-000DGu-AQ for ged-emacs-devel@m.gmane-mx.org; Tue, 12 May 2020 21:28:50 +0200 Original-Received: from localhost ([::1]:33398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYaa9-0005SK-Bx for ged-emacs-devel@m.gmane-mx.org; Tue, 12 May 2020 15:28:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYaZS-000529-AZ for emacs-devel@gnu.org; Tue, 12 May 2020 15:28:06 -0400 Original-Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:39075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYaZQ-0008Sj-Hr for emacs-devel@gnu.org; Tue, 12 May 2020 15:28:05 -0400 Original-Received: by mail-wr1-x42c.google.com with SMTP id l18so17183918wrn.6 for ; Tue, 12 May 2020 12:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=z/OeqazCVftnucAwpdr0gwUkCqz1LBqWL1I7/l3cMpg=; b=cnkbZnCPjiKf5YsW61lbyBlcyMPjbeLEctG3onDbwRqOifyKtoNf1r8USEiQS8XZdA HjBU47ctge+QnkY7E3qAl9s4JmU+CUorslz7uCO2a/8jb7yQSakpFxG6pNThIZ2Ox1Zt inI+aI4EkQWCevR+76bF9yNGW761lOeDeTXP3wYgCFMi4tHXHFhatWYYsy+aXB7i4Qfp THGjIL8fi812/IrBxGXyLqcOx1QpMP7wHu16G9BJijHx1wMd74yKvXykUFgp2pRyuBHp a1/mjKIkuFf/gWzdvVaK7tEhSglzcYlsyUfwJXt9yLjcaf8xw5rzKvBqYm58rhz1yG5Z GusA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=z/OeqazCVftnucAwpdr0gwUkCqz1LBqWL1I7/l3cMpg=; b=DZrgewK+B9ida4SDkzdFe2hOElBVI0mWJHDnYC3zHvhBejY356zwcfQAQybI57SuJL kLm00/DO+iaHd8be/MPlcRgVFZ8x1ZL5ahrE0JEbXbmde/96CdA0w0OXmpI4lkjR6VOB xMvAaf3+rHjrm2s38WevFmcKBpjO4LWTpyaIHsVaZJZHk91BKbtDteuMxnUBH3ea8GlQ kC0I+d/P/ArPtkuZYcrTOhAyktUlzt9MIlcEn8E7sWUs5lYOi4MrW+mCJs6/CkhrIeEO y/M5UGo625mmNcCbmm6sEDYCdZ7RnalHHS7OfHQIf0zxapIygmJqJN492l29OqSRSb98 sbhg== X-Gm-Message-State: AGi0PuYV7OF2zgVybw5e1Hbihzx3Vl6JxvWd478cLxxzw96YBInC33uH +ijmJeo3y7Rhec1Ffuym3EjXJrAZ X-Google-Smtp-Source: APiQypJgz4IT+ax4CZzMA32y434WrLqBqDFxksZVZtqd36sy9wddos1ujDyLyZM5zNN/hIKhmTLQKw== X-Received: by 2002:a5d:66c9:: with SMTP id k9mr24637565wrw.307.1589311682677; Tue, 12 May 2020 12:28:02 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id 18sm20014891wmj.19.2020.05.12.12.28.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 May 2020 12:28:02 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=raaahh@gmail.com; helo=mail-wr1-x42c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:250027 Archived-At: On 12.05.2020 21:33, Gary Oberbrunner wrote: > In my case at least, you're right and my submodule is seriously > confused. It has a .git/ dir which disagrees with the ../.git/modules > one. That's what was causing my problem. I've been doing a lot of work > in that submodule (multiple upstream repos, merges, pushes, etc.) and > perhaps something I did made it create that. How common do you think is such problem going to be? If it's rare, I'd rather let you fix the local configuration and leave that part of the code in Emacs simple. Unless this comes up again, of course. > Apparently the correct way to do this is "git rev-parse > --show-superproject-working-tree". See > https://stackoverflow.com/questions/7359204 for more info. (And in > fact that does work in my case even with my messed-up .git dir in the > submodule.) Thank you. Any idea which version of Git this was added in first? We'd have to consider that for compatibility with older systems.