]> git.ipfire.org Git - thirdparty/git.git/commit
reflog tests: test for the "points nowhere" warning
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 15 Mar 2019 15:59:56 +0000 (16:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Mar 2019 06:09:40 +0000 (15:09 +0900)
commitfe66776db0b841d4d4cf64f078e1ffd82193442a
tree1a23ec5a1d05446aef824698a0e4a96a70b87f1f
parenta65bf78c4db0dda04ce726250ed84d23f109433f
reflog tests: test for the "points nowhere" warning

The "git reflog expire" command when given an unknown reference has
since 4264dc15e1 ("git reflog expire", 2006-12-19) when this command
was implemented emit an error, but this has never been tested for.

Let's test for it, also under gc.reflogExpire{Unreachable,}=never in
case a future change is tempted to take shortcuts in the presence of
such config.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1410-reflog.sh