We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4f529e commit 8594a15Copy full SHA for 8594a15
test/setup
@@ -23,6 +23,13 @@ fi
23
export XDG_CONFIG_HOME=$SCRIPT_DIR
24
export HOME=$SCRIPT_DIR
25
export GIT_CONFIG_NOSYSTEM=1
26
+# Set global GIT configuration for tests:
27
+if [ ! -f "${HOME}/.gitconfig" ]; then
28
+ git config --global user.email "you@example.com"
29
+ git config --global user.name "Your Name"
30
+ git config --global init.defaultBranch "master"
31
+ git config --global --add safe.directory "$(pwd)"
32
+fi
33
# To be able to view current GIT confirguration during tests execution,
34
# run the test suite by adding the '-v' option to the prove command.
35
git config --list
0 commit comments