t1400: use test_must_be_empty
commitc93a5aaec859f93ff24277269e2fdef00c9c45e6
authorRené Scharfe <l.s.r@web.de>
Tue, 26 Nov 2019 19:41:57 +0000 (26 20:41 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Nov 2019 02:32:02 +0000 (27 11:32 +0900)
tree3df56a396b475b745e7c87bee8984624052b5d12
parent6e4826ea75f7bfeeb48c2fd976054d8bc3e73c9c
t1400: use test_must_be_empty

Use test_must_be_empty instead of reading the file and comparing its
contents to an empty string.  That's more efficient, as the function
only needs built-in meta-data only check in the usual case, and provides
nicer debug output otherwise.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1400-update-ref.sh