Skip to content

Commit d7a5c6a

Browse files
committed
tests: add git default username and email
1 parent a257808 commit d7a5c6a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
- repo: /Users/detailyang/art/opensource/personal/pre-commit-shell
2-
sha: 3e118275d431f939f602cebe0de14289abe5398a
2+
sha: a257808093def4b815db6924b62e806b88011e91
33
hooks:
44
- id: shell-lint

test/init.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ cp test/test.sh "$tmpdir"
1818
cp test/.pre-commit-config.yaml "$tmpdir"
1919
cp test/.pre-commit-hooks.yaml "$tmpdir"
2020
pushd "$tmpdir"
21+
git config --global user.email "detailyang@gmail.com"
22+
git config --global user.name "detailyang"
2123
git init
2224
git add .pre-commit-config.yaml .pre-commit-hooks.yaml --all ; git commit -a -m "init test case"
2325
pre-commit install

0 commit comments

Comments
 (0)