Skip to content

Commit ce57d85

Browse files
hanwengitster
authored andcommitted
t3432: use git-reflog to inspect the reflog for HEAD
Signed-off-by: Han-Wen Nienhuys <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9e35a6a commit ce57d85

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

t/t3432-rebase-fast-forward.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,16 @@ test_rebase_same_head_ () {
6060
fi &&
6161
oldhead=\$(git rev-parse HEAD) &&
6262
test_when_finished 'git reset --hard \$oldhead' &&
63-
cp .git/logs/HEAD expect &&
63+
git reflog HEAD >expect &&
6464
git rebase$flag $* >stdout &&
65+
git reflog HEAD >actual &&
6566
if test $what = work
6667
then
6768
old=\$(wc -l <expect) &&
68-
test_line_count '-gt' \$old .git/logs/HEAD
69+
test_line_count '-gt' \$old actual
6970
elif test $what = noop
7071
then
71-
test_cmp expect .git/logs/HEAD
72+
test_cmp expect actual
7273
fi &&
7374
newhead=\$(git rev-parse HEAD) &&
7475
if test $cmp = same

0 commit comments

Comments
 (0)