The tests in:


were failing because the git commands were using the environment
variable `XDG_CONFIG_HOME' as it was set for the user's usual
environment, rather than as set for the testing environment.

This commit provides the quickest, simplest hack to make things work;
because there is already the setting and exporting of the environment
variable `HOME' in:


this commit simply adds to that file the setting and exporting of
the variable `XDG_CONFIG_HOME' (based on the variable `HOME' that is
provided there).

However, the existing tests [sometimes] don't use these variables
explicitly, so the whole structure of this testing rests on the
hope that people maintain the conventions captured by the values
of these variables; another commit should fix this instability
by using these variables explicitly.

(Note: Double quotes are not needed around the value assigned
to the variable, as word splitting is not performed).

Signed-off-by: Michael Witten <>
 t/ | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/t/ b/t/
index acda33d..69bcc75 100644
--- a/t/
+++ b/t/
@@ -544,6 +544,9 @@ rm -fr "$test" || {
 export HOME
 if test -z "$TEST_NO_CREATE_REPO"; then
        test_create_repo "$test"

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to