[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: git commit message checker won't let me commit a new file.

From: Jim Porter
Subject: Re: git commit message checker won't let me commit a new file.
Date: Tue, 18 Jul 2023 15:05:34 -0700

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]