File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,18 @@ if [ ! -d "${SCRIPT_DIR}/../.git" ]; then
1515 git config user.name " YouUser"
1616 git add .
1717 git commit -a -m" Initial commit"
18- git config --list
1918fi
2019
20+ # Disable any GIT configuration set outside this 'git-subrepo' project.
21+ # This prevents specific build environment GIT settings to influence
22+ # execution of the test suite.
23+ export XDG_CONFIG_HOME=$SCRIPT_DIR
24+ export HOME=$SCRIPT_DIR
25+ export GIT_CONFIG_NOSYSTEM=1
26+ # To be able to view current GIT confirguration during tests execution,
27+ # run the test suite by adding the '-v' option to the prove command.
28+ git config --list
29+
2130# Generate additional testing git repos, if not already present.
2231mkdir -p " ${SCRIPT_DIR} /repo"
2332if [ ! -d " ${SCRIPT_DIR} /repo/bar" ]; then
You can’t perform that action at this time.
0 commit comments