convert: check for detectable errors in UTF encodings
Check that new content is valid with respect to the user defined
'working-tree-encoding' attribute.
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Lars Schneider7 years agocommitted byJunio C Hamano
@ -139,4 +185,20 @@ test_expect_success 'error if encoding round trip is not the same during refresh
@@ -139,4 +185,20 @@ test_expect_success 'error if encoding round trip is not the same during refresh
test_i18ngrep "error: .* overwritten by checkout:" err.out
'
test_expect_success 'error if encoding garbage is already in Git' '