Skip to content

Commit 524225f

Browse files
committed
t3400: do not use the name default for a topic branch
We will change the default branch name from `master` to `default` in the next commit, therefore we need to stop using that name for anything other than the default branch. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b3d7a52 commit 524225f

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

t/t3400-rebase.sh

+24-24
Original file line numberDiff line numberDiff line change
@@ -166,52 +166,52 @@ test_expect_success 'rebase works with format.useAutoBase' '
166166
'
167167

168168
test_expect_success 'default to common base in @{upstream}s reflog if no upstream arg (--merge)' '
169-
git checkout -b default-base master &&
170-
git checkout -b default topic &&
171-
git config branch.default.remote . &&
172-
git config branch.default.merge refs/heads/default-base &&
169+
git checkout -b def-base master &&
170+
git checkout -b def topic &&
171+
git config branch.def.remote . &&
172+
git config branch.def.merge refs/heads/def-base &&
173173
git rebase --merge &&
174-
git rev-parse --verify default-base >expect &&
175-
git rev-parse default~1 >actual &&
174+
git rev-parse --verify def-base >expect &&
175+
git rev-parse def~1 >actual &&
176176
test_cmp expect actual &&
177-
git checkout default-base &&
177+
git checkout def-base &&
178178
git reset --hard HEAD^ &&
179-
git checkout default &&
179+
git checkout def &&
180180
git rebase --merge &&
181-
git rev-parse --verify default-base >expect &&
182-
git rev-parse default~1 >actual &&
181+
git rev-parse --verify def-base >expect &&
182+
git rev-parse def~1 >actual &&
183183
test_cmp expect actual
184184
'
185185

186186
test_expect_success 'default to common base in @{upstream}s reflog if no upstream arg (--apply)' '
187-
git checkout -B default-base master &&
188-
git checkout -B default topic &&
189-
git config branch.default.remote . &&
190-
git config branch.default.merge refs/heads/default-base &&
187+
git checkout -B def-base master &&
188+
git checkout -B def topic &&
189+
git config branch.def.remote . &&
190+
git config branch.def.merge refs/heads/def-base &&
191191
git rebase --apply &&
192-
git rev-parse --verify default-base >expect &&
193-
git rev-parse default~1 >actual &&
192+
git rev-parse --verify def-base >expect &&
193+
git rev-parse def~1 >actual &&
194194
test_cmp expect actual &&
195-
git checkout default-base &&
195+
git checkout def-base &&
196196
git reset --hard HEAD^ &&
197-
git checkout default &&
197+
git checkout def &&
198198
git rebase --apply &&
199-
git rev-parse --verify default-base >expect &&
200-
git rev-parse default~1 >actual &&
199+
git rev-parse --verify def-base >expect &&
200+
git rev-parse def~1 >actual &&
201201
test_cmp expect actual
202202
'
203203

204204
test_expect_success 'cherry-picked commits and fork-point work together' '
205-
git checkout default-base &&
205+
git checkout def-base &&
206206
echo Amended >A &&
207207
git commit -a --no-edit --amend &&
208208
test_commit B B &&
209209
test_commit new_B B "New B" &&
210210
test_commit C C &&
211-
git checkout default &&
212-
git reset --hard default-base@{4} &&
211+
git checkout def &&
212+
git reset --hard def-base@{4} &&
213213
test_commit D D &&
214-
git cherry-pick -2 default-base^ &&
214+
git cherry-pick -2 def-base^ &&
215215
test_commit final_B B "Final B" &&
216216
git rebase &&
217217
echo Amended >expect &&

0 commit comments

Comments
 (0)