all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: .git/hooks/commit-msg
Date: Wed, 10 Dec 2014 10:45:53 -0500	[thread overview]
Message-ID: <877fxza4pa.fsf@lifelogs.com> (raw)
In-Reply-To: 5484FB75.4080501@cs.ucla.edu

On Sun, 07 Dec 2014 17:14:29 -0800 Paul Eggert <eggert@cs.ucla.edu> wrote: 

PE> Jan D. wrote:
>> It keeps complaining about control caracter, even if there are none....
>> Does it assume GNU awk?

PE> No, it assumes only POSIX awk.  However, it turns out that FreeBSD awk
PE> is buggy here; see FreeBSD bug#195792
PE> <http://bugs.freebsd.org/195792>.

PE> I worked around the FreeBSD bug by installing the attached patch to
PE> the emacs-24 branch; this should be merged into the Emacs master in
PE> due course.  After applying the patch, you can run './autogen.sh' to
PE> propagate the fix into your .git/hooks/commit-msg.

On my Ubuntu system:

mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan

this line:

    nlines == 0 && !/[^[:space:]]/ { next }

skips all lines, so I end up with "Empty change log entry" and an abort.
For now I've removed it because I don't know awk well, so I can't fix it
properly myself.

I can rewrite that script in Perl if it's better.  Whatever works.

Ted




  parent reply	other threads:[~2014-12-10 15:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-07 16:19 .git/hooks/commit-msg Jan D.
2014-12-07 16:36 ` .git/hooks/commit-msg Ted Zlatanov
2014-12-08  1:14 ` .git/hooks/commit-msg Paul Eggert
2014-12-08 11:53   ` .git/hooks/commit-msg Jan D.
2014-12-10 15:45   ` Ted Zlatanov [this message]
2014-12-11  7:25     ` .git/hooks/commit-msg Paul Eggert
2014-12-11 11:54       ` .git/hooks/commit-msg Ted Zlatanov
2014-12-12 18:03         ` .git/hooks/commit-msg Paul Eggert
2014-12-13  0:50           ` .git/hooks/commit-msg Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877fxza4pa.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.