t1400: use test_must_be_empty
authorRené Scharfe <redacted>
Tue, 26 Nov 2019 19:41:57 +0000 (20:41 +0100)
committerJunio C Hamano <redacted>
Wed, 27 Nov 2019 02:32:02 +0000 (11:32 +0900)
commitc93a5aaec859f93ff24277269e2fdef00c9c45e6
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t1400-update-ref.sh
git clone https://git.99rst.org/PROJECT