From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: git commit message checker won't let me commit a new file. Date: Tue, 18 Jul 2023 15:05:34 -0700 Message-ID: <829deea6-a17c-47ba-104d-37a88d081a3e@gmail.com> 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="blaine.gmane.org:116.202.254.214"; logging-data="15838"; mail-complaints-to="usenet@ciao.gmane.io" To: Alan Mackenzie , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 19 00:06:34 2023 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 1qLspz-0003uc-SJ for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Jul 2023 00:06:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLspA-0004Ik-8l; Tue, 18 Jul 2023 18:05:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qLsp9-0004HY-2w for emacs-devel@gnu.org; Tue, 18 Jul 2023 18:05:39 -0400 Original-Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qLsp7-0006ff-Ds for emacs-devel@gnu.org; Tue, 18 Jul 2023 18:05:38 -0400 Original-Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-66869feb7d1so4219807b3a.3 for ; Tue, 18 Jul 2023 15:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689717935; x=1692309935; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=xbbRs70kiLrhwS9OO/Tkzrh8a6vnJgFGqAo/699alkY=; b=RSyVmEjgNn6WTWtzgq8rdvUdwFt7fzUXb76mXPiFht8AyNts62+4pfAQgksUVrM/OW sl819RPm9Uvfd0ytSztyf6ov9jAoQzM94iRXWJZkJpBAUpvnhqzO8eTfaJLVLhcTtqJ1 rJ+AuzQSUB+YyBWTgtTSFYdZFp6U+uI2fO0ijsOoqgP2lKiVt+oPuclcJegQHiJW0pA7 cd7/lEEjDLWa1bC/rxTdZyQrkkVYUmgwPZTphmQ53GJSw2RWySDCtGQ6lcQiIh29n8Xy yUazKfUsU+M8fN4w5XPZ0OlbMF2LnyPJvXt0yZ6ZRYK19vpBvHMhHM3ngsxW9wgn0EzS 7MYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689717935; x=1692309935; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xbbRs70kiLrhwS9OO/Tkzrh8a6vnJgFGqAo/699alkY=; b=BtLAFKRCLw5+46hP/Xfyc2CEJ6YDtS96eU/IOm6GtFfT4D+iIAS2tR+XGBcLjpWl5d 3jx9L7Onyk+poRLpvl8IT3d7MeLboG3DwrhMBp0XJTEUqJrlVZE0GZRn6TNVQZavGyWf nK9HWZNOvL3qqjgS8638I9ZdoDUvBqhKj8FRDKcFxaEmDXBPxktP0kmWvnnIIOvRgj/D eqPR5QfQM9F4sO04pPcZVj4OiBNpFjikAX8/2hLXgz+kvt8oyruhDmi3rlTukMgU+XQu J4gOPqkoVY+AmkkQGv3W2SkZ6YGSYl2fDU8cddddnHwtTlzQxGeJsqWpWX0o56JMBn8E WtVw== X-Gm-Message-State: ABy/qLaLgvw1OtaPeGJh/SLNGfg/dLHUZ0QYVLAgUTe35f3IWDrY/UUZ KKGPq1aWy4HXxPH89Trp4du6MOV8/AE= X-Google-Smtp-Source: APBJJlErB2imMqLzEtd04rq0SODkbUE/B0Ktgm3UtNyQZKbhaEPCg3s+p26bf+39psWBJA6a7yCx4A== X-Received: by 2002:a05:6a00:2d8f:b0:682:4c9f:aa1 with SMTP id fb15-20020a056a002d8f00b006824c9f0aa1mr503278pfb.5.1689717935391; Tue, 18 Jul 2023 15:05:35 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id m11-20020aa78a0b000000b00682bec0b680sm1972247pfa.89.2023.07.18.15.05.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jul 2023 15:05:35 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=jporterbugs@gmail.com; helo=mail-pf1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:307959 Archived-At: On 7/18/2023 1:23 PM, Alan Mackenzie wrote: > Hello, Emacs. > > I'm trying to commit a fix for bug #64642. This involves adding a new > test file. > > The commit message checker says "File > test/src/comp-resources/comp-test-funcs-dyn2.el: cannot be read: [No > such file or directory] > Commit aborted; please see the file CONTRIBUTE" That's surprising. This works perfectly for me. Can you describe in more detail how you're committing your change? Here's what I did: $ git checkout -b testing $ echo hi > test/src/comp-resources/comp-test-funcs-dyn2.el $ git add test/src/comp-resources/comp-test-funcs-dyn2.el $ git commit In my editor, I add this for the commit message: * test/src/comp-resources/comp-test-funcs-dyn2.el: New file. The commit hooks run successfully for me and don't produce any errors. Based on the output you see, I'm guessing the issue is in the `commit-msg` hook, but I don't see anything in there that would do this.