Skip to content

Commit 1b26bf7

Browse files
committed
tests: set username and email for local git
1 parent 7971f72 commit 1b26bf7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ 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-
sudo git config --global user.email "detailyang@gmail.com"
22-
sudo git config --global user.name "detailyang"
2321
git init
22+
git config user.email "detailyang@gmail.com"
23+
git config user.name "detailyang"
2424
git add .pre-commit-config.yaml .pre-commit-hooks.yaml --all ; git commit -a -m "init test case"
2525
pre-commit install
2626
pre-commit run

0 commit comments

Comments
 (0)