File tree Expand file tree Collapse file tree 5 files changed +3
-13
lines changed Expand file tree Collapse file tree 5 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 3
3
. ./test-lib.sh
4
4
5
5
unset CVS_SERVER
6
- # for clean cvsps cache
7
- HOME=$( pwd)
8
- export HOME
9
6
10
7
if ! type cvs > /dev/null 2>&1
11
8
then
Original file line number Diff line number Diff line change @@ -171,8 +171,6 @@ test_expect_success 'init with init.templatedir set' '
171
171
mkdir templatedir-source &&
172
172
echo Content >templatedir-source/file &&
173
173
(
174
- HOME="`pwd`" &&
175
- export HOME &&
176
174
test_config="${HOME}/.gitconfig" &&
177
175
git config -f "$test_config" init.templatedir "${HOME}/templatedir-source" &&
178
176
mkdir templatedir-set &&
@@ -188,8 +186,6 @@ test_expect_success 'init with init.templatedir set' '
188
186
189
187
test_expect_success ' init --bare/--shared overrides system/global config' '
190
188
(
191
- HOME="`pwd`" &&
192
- export HOME &&
193
189
test_config="$HOME"/.gitconfig &&
194
190
unset GIT_CONFIG_NOGLOBAL &&
195
191
git config -f "$test_config" core.bare false &&
@@ -205,8 +201,6 @@ test_expect_success 'init --bare/--shared overrides system/global config' '
205
201
206
202
test_expect_success ' init honors global core.sharedRepository' '
207
203
(
208
- HOME="`pwd`" &&
209
- export HOME &&
210
204
test_config="$HOME"/.gitconfig &&
211
205
unset GIT_CONFIG_NOGLOBAL &&
212
206
git config -f "$test_config" core.sharedRepository 0666 &&
Original file line number Diff line number Diff line change @@ -163,8 +163,6 @@ test_expect_success 'clone a void' '
163
163
164
164
test_expect_success ' clone respects global branch.autosetuprebase' '
165
165
(
166
- HOME=$(pwd) &&
167
- export HOME &&
168
166
test_config="$HOME/.gitconfig" &&
169
167
unset GIT_CONFIG_NOGLOBAL &&
170
168
git config -f "$test_config" branch.autosetuprebase remote &&
Original file line number Diff line number Diff line change @@ -95,8 +95,6 @@ test_expect_success 'fresh clone with svn.authors-file in config' '
95
95
(
96
96
rm -r "$GIT_DIR" &&
97
97
test x = x"$(git config svn.authorsfile)" &&
98
- HOME="`pwd`" &&
99
- export HOME &&
100
98
test_config="$HOME"/.gitconfig &&
101
99
unset GIT_CONFIG_NOGLOBAL &&
102
100
unset GIT_DIR &&
Original file line number Diff line number Diff line change @@ -865,6 +865,9 @@ test_create_repo "$test"
865
865
# in subprocesses like git equals our $PWD (for pathname comparisons).
866
866
cd -P " $test " || exit 1
867
867
868
+ HOME=$( pwd)
869
+ export HOME
870
+
868
871
this_test=${0##*/ }
869
872
this_test=${this_test%% -* }
870
873
for skp in $GIT_SKIP_TESTS
You can’t perform that action at this time.
0 commit comments