diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-09-24 20:30:52 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-24 20:30:52 +0300 |
commit | 00d5f665a031a0e74d6e03f54d5aba547a5b0c14 (patch) | |
tree | 8d011c4e969de71e51a30c44f41f0e8b600584f0 /t | |
parent | ee99ba7afbbe1c13b10e27f5f9d162f691682146 (diff) | |
parent | 5025425dffffb4424b746de9209f874ab8b5d179 (diff) |
Merge branch 'ms/remote-error-message-update'
Update error messages given by "git remote" and make them consistent.
* ms/remote-error-message-update:
builtin/remote: quote remote name on error to display empty name
Diffstat (limited to 't')
-rwxr-xr-x | t/t5505-remote.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh index 241e6a319d..d2a2cdd453 100755 --- a/t/t5505-remote.sh +++ b/t/t5505-remote.sh @@ -145,7 +145,7 @@ test_expect_success 'remove remote protects local branches' ' test_expect_success 'remove errors out early when deleting non-existent branch' ' ( cd test && - echo "fatal: No such remote: foo" >expect && + echo "fatal: No such remote: '\''foo'\''" >expect && test_must_fail git remote rm foo 2>actual && test_i18ncmp expect actual ) @@ -173,7 +173,7 @@ test_expect_success 'remove remote with a branch without configured merge' ' test_expect_success 'rename errors out early when deleting non-existent branch' ' ( cd test && - echo "fatal: No such remote: foo" >expect && + echo "fatal: No such remote: '\''foo'\''" >expect && test_must_fail git remote rename foo bar 2>actual && test_i18ncmp expect actual ) |