unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 35c902d8270f7cd28e6f75415c1d4220ab08b9b6 348 bytes (raw)
name: build-aux/git-hooks/post-commit 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
#!/bin/sh

git rev-parse HEAD | awk '
  # FIXME: Do this a POSIX-compatible way.
  @include ".git/hooks/commit-msg-files.awk"

  /^[a-z0-9]{40}$/ {
    if (! check_commit_msg_files($0)) {
      status = 1
    }
  }

  END {
    if (status != 0) {
      print "Bad commit message; please see the file '\''CONTRIBUTE'\''"
    }
    exit status
  }
'

debug log:

solving 35c902d8270 ...
found 35c902d8270 in https://yhetil.org/emacs-devel/48d4dffa-cfa8-7949-3043-a1efa937902d@gmail.com/

applying [1/1] https://yhetil.org/emacs-devel/48d4dffa-cfa8-7949-3043-a1efa937902d@gmail.com/
diff --git a/build-aux/git-hooks/post-commit b/build-aux/git-hooks/post-commit
new file mode 100644
index 00000000000..35c902d8270

Checking patch build-aux/git-hooks/post-commit...
Applied patch build-aux/git-hooks/post-commit cleanly.

index at:
100644 35c902d8270f7cd28e6f75415c1d4220ab08b9b6	build-aux/git-hooks/post-commit

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).