mirror of
https://github.com/git/git.git
synced 2024-10-28 12:59:41 +01:00
t3432: use git-reflog to inspect the reflog for HEAD
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
9e35a6a986
commit
ce57d85645
1 changed files with 4 additions and 3 deletions
|
@ -60,15 +60,16 @@ test_rebase_same_head_ () {
|
|||
fi &&
|
||||
oldhead=\$(git rev-parse HEAD) &&
|
||||
test_when_finished 'git reset --hard \$oldhead' &&
|
||||
cp .git/logs/HEAD expect &&
|
||||
git reflog HEAD >expect &&
|
||||
git rebase$flag $* >stdout &&
|
||||
git reflog HEAD >actual &&
|
||||
if test $what = work
|
||||
then
|
||||
old=\$(wc -l <expect) &&
|
||||
test_line_count '-gt' \$old .git/logs/HEAD
|
||||
test_line_count '-gt' \$old actual
|
||||
elif test $what = noop
|
||||
then
|
||||
test_cmp expect .git/logs/HEAD
|
||||
test_cmp expect actual
|
||||
fi &&
|
||||
newhead=\$(git rev-parse HEAD) &&
|
||||
if test $cmp = same
|
||||
|
|
Loading…
Reference in a new issue