Skip to content

Commit bbebdc1

Browse files
committed
Merge branch 'jk/fetch-reflog-df-conflict'
Fix-up a test for portability. * jk/fetch-reflog-df-conflict: t1410: fix breakage on case-insensitive filesystems
2 parents f6f61cb + aae828b commit bbebdc1

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

t/t1410-reflog.sh

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -254,36 +254,36 @@ test_expect_success 'checkout should not delete log for packed ref' '
254254
'
255255

256256
test_expect_success 'stale dirs do not cause d/f conflicts (reflogs on)' '
257-
test_when_finished "git branch -d a || git branch -d a/b" &&
257+
test_when_finished "git branch -d one || git branch -d one/two" &&
258258
259-
git branch a/b master &&
260-
echo "a/b@{0} branch: Created from master" >expect &&
261-
git log -g --format="%gd %gs" a/b >actual &&
259+
git branch one/two master &&
260+
echo "one/two@{0} branch: Created from master" >expect &&
261+
git log -g --format="%gd %gs" one/two >actual &&
262262
test_cmp expect actual &&
263-
git branch -d a/b &&
263+
git branch -d one/two &&
264264
265-
# now logs/refs/heads/a is a stale directory, but
266-
# we should move it out of the way to create "a" reflog
267-
git branch a master &&
268-
echo "a@{0} branch: Created from master" >expect &&
269-
git log -g --format="%gd %gs" a >actual &&
265+
# now logs/refs/heads/one is a stale directory, but
266+
# we should move it out of the way to create "one" reflog
267+
git branch one master &&
268+
echo "one@{0} branch: Created from master" >expect &&
269+
git log -g --format="%gd %gs" one >actual &&
270270
test_cmp expect actual
271271
'
272272

273273
test_expect_success 'stale dirs do not cause d/f conflicts (reflogs off)' '
274-
test_when_finished "git branch -d a || git branch -d a/b" &&
274+
test_when_finished "git branch -d one || git branch -d one/two" &&
275275
276-
git branch a/b master &&
277-
echo "a/b@{0} branch: Created from master" >expect &&
278-
git log -g --format="%gd %gs" a/b >actual &&
276+
git branch one/two master &&
277+
echo "one/two@{0} branch: Created from master" >expect &&
278+
git log -g --format="%gd %gs" one/two >actual &&
279279
test_cmp expect actual &&
280-
git branch -d a/b &&
280+
git branch -d one/two &&
281281
282-
# same as before, but we only create a reflog for "a" if
282+
# same as before, but we only create a reflog for "one" if
283283
# it already exists, which it does not
284-
git -c core.logallrefupdates=false branch a master &&
284+
git -c core.logallrefupdates=false branch one master &&
285285
: >expect &&
286-
git log -g --format="%gd %gs" a >actual &&
286+
git log -g --format="%gd %gs" one >actual &&
287287
test_cmp expect actual
288288
'
289289

0 commit comments

Comments
 (0)