35
36
# use UTF-8 in author and committer name to match the
37
# i18n.commitencoding settings
38
- . ../t3901-utf8.txt &&
38
+ . "$TEST_DIRECTORY"/t3901-utf8.txt &&
39
40
test_tick &&
41
echo "$GIT_AUTHOR_NAME" >mine &&
57
# the second one on the side branch is ISO-8859-1
58
git config i18n.commitencoding ISO-8859-1 &&
59
# use author and committer name in ISO-8859-1 to match it.
60
- . ../t3901-8859-1.txt &&
60
+ . "$TEST_DIRECTORY"/t3901-8859-1.txt &&
61
test_tick &&
62
echo Yet another >theirs &&
63
git add theirs &&
101
102
# The result will be committed by GIT_COMMITTER_NAME --
103
# we want UTF-8 encoded name.
104
- . ../t3901-utf8.txt &&
104
+ . "$TEST_DIRECTORY"/t3901-utf8.txt &&
105
git checkout -b test &&
106
git-rebase master &&
107
111
test_expect_success 'rebase (U/L)' '
112
git config i18n.commitencoding UTF-8 &&
113
git config i18n.logoutputencoding ISO-8859-1 &&
114
- . ../t3901-utf8.txt &&
114
+ . "$TEST_DIRECTORY"/t3901-utf8.txt &&
115
116
git reset --hard side &&
117
git-rebase master &&
123
# In this test we want ISO-8859-1 encoded commits as the result
124
git config i18n.commitencoding ISO-8859-1 &&
125
git config i18n.logoutputencoding ISO-8859-1 &&
126
- . ../t3901-8859-1.txt &&
126
+ . "$TEST_DIRECTORY"/t3901-8859-1.txt &&
127
128
git reset --hard side &&
129
git-rebase master &&
136
# to get ISO-8859-1 results.
137
git config i18n.commitencoding ISO-8859-1 &&
138
git config i18n.logoutputencoding UTF-8 &&
139
- . ../t3901-8859-1.txt &&
139
+ . "$TEST_DIRECTORY"/t3901-8859-1.txt &&
140
141
git reset --hard side &&
142
git-rebase master &&
149
150
git config i18n.commitencoding UTF-8 &&
151
git config i18n.logoutputencoding UTF-8 &&
152
- . ../t3901-utf8.txt &&
152
+ . "$TEST_DIRECTORY"/t3901-utf8.txt &&
153
154
git reset --hard master &&
155
git cherry-pick side^ &&
164
165
git config i18n.commitencoding ISO-8859-1 &&
166
git config i18n.logoutputencoding ISO-8859-1 &&
167
- . ../t3901-8859-1.txt &&
167
+ . "$TEST_DIRECTORY"/t3901-8859-1.txt &&
168
169
git reset --hard master &&
170
git cherry-pick side^ &&
179
180
git config i18n.commitencoding UTF-8 &&
181
git config i18n.logoutputencoding ISO-8859-1 &&
182
- . ../t3901-utf8.txt &&
182
+ . "$TEST_DIRECTORY"/t3901-utf8.txt &&
183
184
git reset --hard master &&
185
git cherry-pick side^ &&
195
196
git config i18n.commitencoding ISO-8859-1 &&
197
git config i18n.logoutputencoding UTF-8 &&
198
- . ../t3901-8859-1.txt &&
198
+ . "$TEST_DIRECTORY"/t3901-8859-1.txt &&
199
200
git reset --hard master &&
201
git cherry-pick side^ &&
208
test_expect_success 'rebase --merge (U/U)' '
209
git config i18n.commitencoding UTF-8 &&
210
git config i18n.logoutputencoding UTF-8 &&
211
- . ../t3901-utf8.txt &&
211
+ . "$TEST_DIRECTORY"/t3901-utf8.txt &&
212
213
git reset --hard side &&
214
git-rebase --merge master &&
219
test_expect_success 'rebase --merge (U/L)' '
220
git config i18n.commitencoding UTF-8 &&
221
git config i18n.logoutputencoding ISO-8859-1 &&
222
- . ../t3901-utf8.txt &&
222
+ . "$TEST_DIRECTORY"/t3901-utf8.txt &&
223
224
git reset --hard side &&
225
git-rebase --merge master &&
231
# In this test we want ISO-8859-1 encoded commits as the result
232
git config i18n.commitencoding ISO-8859-1 &&
233
git config i18n.logoutputencoding ISO-8859-1 &&
234
- . ../t3901-8859-1.txt &&
234
+ . "$TEST_DIRECTORY"/t3901-8859-1.txt &&
235
236
git reset --hard side &&
237
git-rebase --merge master &&
244
# to get ISO-8859-1 results.
245
git config i18n.commitencoding ISO-8859-1 &&
246
git config i18n.logoutputencoding UTF-8 &&
247
- . ../t3901-8859-1.txt &&
247
+ . "$TEST_DIRECTORY"/t3901-8859-1.txt &&
248
249
git reset --hard side &&
250
git-rebase --merge master &&