We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9771df4 commit 8c6d0c3Copy full SHA for 8c6d0c3
1 file changed
shell/acm-hook.sh
@@ -1,12 +1,12 @@
1
#!/usr/bin/env bash
2
-# CLI test for autofill hook.
+# AutoCommit Messsage CLI script for autofill hook.
3
#
4
# See shell/README.md doc.
5
set -e
6
7
GENERATE_CMD='auto_commit_msg_generate'
8
9
-if ! command -v "$GENERATE_CMD" &> /dev/null; then
+if ! command -v "$GENERATE_CMD" &>/dev/null; then
10
echo "Error: $GENERATE_CMD could not be found"
11
exit 1
12
fi
@@ -20,9 +20,9 @@ echo "COMMIT_MSG_FILE = $COMMIT_MSG_FILE"
20
echo "COMMIT_SOURCE = $COMMIT_SOURCE"
21
22
# TODO: Test this - this conditional is untested.
23
-if [ "$COMMIT_SOURCE" = 'template']; then
+if [ "$COMMIT_SOURCE" = 'template' ]; then
24
echo "Current commit message"
25
- <"$COMMIT_MSG_FILE"
+ cat "$COMMIT_MSG_FILE"
26
27
28
CHANGES=$(git diff-index --name-status HEAD)
0 commit comments