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
15
15
git config user.name " YouUser"
16
16
git add .
17
17
git commit -a -m" Initial commit"
18
- git config --list
19
18
fi
20
19
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
+
21
30
# Generate additional testing git repos, if not already present.
22
31
mkdir -p " ${SCRIPT_DIR} /repo"
23
32
if [ ! -d " ${SCRIPT_DIR} /repo/bar" ]; then
You can’t perform that action at this time.
0 commit comments