stash: add tests to ensure reflog --rewrite --updatref behavior
commit76bccbcfe2ff0d75302b0bf98b82aba95f8fc937
authorJohn Cai <johncai86@gmail.com>
Wed, 2 Mar 2022 22:27:22 +0000 (2 22:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Mar 2022 23:24:46 +0000 (2 15:24 -0800)
tree6a532617cd6ef330388f98fbda302f2d1cc0e938
parent715d08a9e51251ad8290b181b6ac3b9e1f9719d7
stash: add tests to ensure reflog --rewrite --updatref behavior

There is missing test coverage to ensure that the resulting reflogs
after a git stash drop has had its old oid rewritten if applicable, and
if the refs/stash has been updated if applicable.

Add two tests that verify both of these happen.

Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3903-stash.sh