wifi test
Dependencies: X_NUCLEO_IKS01A2 mbed-http
easy-connect/wifi-x-nucleo-idw01m1/.git/hooks/commit-msg.sample@0:24d3eb812fd4, 2018-09-05 (annotated)
- Committer:
- JMF
- Date:
- Wed Sep 05 14:28:24 2018 +0000
- Revision:
- 0:24d3eb812fd4
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JMF | 0:24d3eb812fd4 | 1 | #!/bin/sh |
JMF | 0:24d3eb812fd4 | 2 | # |
JMF | 0:24d3eb812fd4 | 3 | # An example hook script to check the commit log message. |
JMF | 0:24d3eb812fd4 | 4 | # Called by "git commit" with one argument, the name of the file |
JMF | 0:24d3eb812fd4 | 5 | # that has the commit message. The hook should exit with non-zero |
JMF | 0:24d3eb812fd4 | 6 | # status after issuing an appropriate message if it wants to stop the |
JMF | 0:24d3eb812fd4 | 7 | # commit. The hook is allowed to edit the commit message file. |
JMF | 0:24d3eb812fd4 | 8 | # |
JMF | 0:24d3eb812fd4 | 9 | # To enable this hook, rename this file to "commit-msg". |
JMF | 0:24d3eb812fd4 | 10 | |
JMF | 0:24d3eb812fd4 | 11 | # Uncomment the below to add a Signed-off-by line to the message. |
JMF | 0:24d3eb812fd4 | 12 | # Doing this in a hook is a bad idea in general, but the prepare-commit-msg |
JMF | 0:24d3eb812fd4 | 13 | # hook is more suited to it. |
JMF | 0:24d3eb812fd4 | 14 | # |
JMF | 0:24d3eb812fd4 | 15 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') |
JMF | 0:24d3eb812fd4 | 16 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" |
JMF | 0:24d3eb812fd4 | 17 | |
JMF | 0:24d3eb812fd4 | 18 | # This example catches duplicate Signed-off-by lines. |
JMF | 0:24d3eb812fd4 | 19 | |
JMF | 0:24d3eb812fd4 | 20 | test "" = "$(grep '^Signed-off-by: ' "$1" | |
JMF | 0:24d3eb812fd4 | 21 | sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { |
JMF | 0:24d3eb812fd4 | 22 | echo >&2 Duplicate Signed-off-by lines. |
JMF | 0:24d3eb812fd4 | 23 | exit 1 |
JMF | 0:24d3eb812fd4 | 24 | } |