File tree 3 files changed +19
-3
lines changed
3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : " test"
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - ' master'
8
+ pull_request : {}
9
+
10
+ jobs :
11
+ test :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - run : make test
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ prepare_commit_msg_hook() {
213
213
214
214
install_hook () {
215
215
local path=" $1 " hook=" $2 " cmd=" $3 " dest
216
- # Determines the approriate path for a hook to be installed
216
+ # Determines the appropriate path for a hook to be installed
217
217
if [ -d " ${path} /hooks/${hook} .d" ]; then
218
218
dest=" ${path} /hooks/${hook} .d/git-secrets"
219
219
else
@@ -224,7 +224,8 @@ install_hook() {
224
224
echo " #!/usr/bin/env bash" > " ${dest} "
225
225
echo " git secrets --${cmd} -- \"\$ @\" " >> " ${dest} "
226
226
chmod +x " ${dest} "
227
- say " $( tput setaf 2) ✓$( tput sgr 0) Installed ${hook} hook to ${dest} "
227
+ [ -t 1 ] && command -v tput & > /dev/null && echo -n " $( tput setaf 2) ✓$( tput sgr 0) "
228
+ echo " Installed ${hook} hook to ${dest} "
228
229
}
229
230
230
231
install_all_hooks () {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ setup_repo() {
30
30
delete_repo
31
31
mkdir -p $TEST_REPO
32
32
cd $TEST_REPO
33
- git init
33
+ git init --initial-branch=master
34
34
git config --local --add secrets.patterns ' @todo'
35
35
git config --local --add secrets.patterns ' forbidden|me'
36
36
git config --local --add secrets.patterns ' WHITE SPACE'
You can’t perform that action at this time.
0 commit comments