summaryrefslogtreecommitdiff
path: root/t/t3700-add.sh
diff options
context:
space:
mode:
authorMatheus Tavares <matheus.bernardino@usp.br>2021-02-23 01:10:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-24 20:14:51 (GMT)
commit48960894f5a89639809bdad5618439ba59869522 (patch)
tree3ca0a99bb729b6aff384806967ccdc3f9bc33e07 /t/t3700-add.sh
parentc937d70bfb7661d5122e08758ae0531073a719ed (diff)
downloadgit-48960894f5a89639809bdad5618439ba59869522.zip
git-48960894f5a89639809bdad5618439ba59869522.tar.gz
git-48960894f5a89639809bdad5618439ba59869522.tar.bz2
add: mark --chmod error string for translation
This error message is intended for humans, so mark it for translation. Also use error() instead of fprintf(stderr, ...), to make the corresponding line a bit cleaner, and to display the "error:" prefix, which helps classifying the nature/severity of the message. Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> Reviewed-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3700-add.sh')
-rwxr-xr-xt/t3700-add.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3700-add.sh b/t/t3700-add.sh
index fc81f2e..6a8b94a 100755
--- a/t/t3700-add.sh
+++ b/t/t3700-add.sh
@@ -398,7 +398,7 @@ test_expect_success 'git add --chmod --dry-run reports error for non regular fil
git reset --hard &&
test_ln_s_add foo foo4 &&
git add --chmod=+x --dry-run foo4 2>stderr &&
- grep "cannot chmod +x .foo4." stderr
+ test_i18ngrep "cannot chmod +x .foo4." stderr
'
test_expect_success 'git add --chmod --dry-run reports error for unmatched pathspec' '