We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b598d8 commit f88979cCopy full SHA for f88979c
1 file changed
tests/_test_helper.bash
@@ -7,13 +7,13 @@ function init_git_repo {
7
echo "WARNING: Test repo already exists at $BATS_TEST_DIRNAME/.git"
8
else
9
# Configure "main" as the default branch name
10
- git config --global init.defaultBranch main
+ git config --local init.defaultBranch main
11
# Initialise test git repo at the same path as the test files
12
git init "$BATS_TEST_DIRNAME"
13
git checkout -b main
14
# Tests will fail if name and email aren't set
15
- git config user.name "John Doe"
16
- git config user.email johndoe@example.com
+ git config --local user.name "John Doe"
+ git config --local user.email johndoe@example.com
17
# Flag test git repo as 100% the test one, for safety before later removal
18
touch "$BATS_TEST_DIRNAME"/.git/repo-for-transcrypt-bats-tests
19
fi
0 commit comments