t1308: relax the test verifying that empty alias values are disallowed
We are about to change the way aliases are expanded, to use the early config machinery. This machinery reports errors in a slightly different manner than the cached config machinery. Let's not get hung up by the precise wording of the message mentioning the line number. It is really sufficient to verify that all the relevant information is given to the user. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Jun 14, 2017 at 13:35 UTC
e4feff4898f4705cc8df50e3dc152ed45ef06db6
1 file changed
+3
-1
t/t1308-config-set.sh
+3
-1
@@ -215,7 +215,9 @@ test_expect_success 'check line errors for malformed values' '
215
br
216
EOF
217
test_expect_code 128 git br 2>result &&
218
- test_i18ngrep "fatal: .*alias\.br.*\.git/config.*line 2" result
218
+ test_i18ngrep "missing value for .alias\.br" result &&
219
+ test_i18ngrep "fatal: .*\.git/config" result &&
220
+ test_i18ngrep "fatal: .*line 2" result
221
'
222
223
test_expect_success 'error on modifying repo config without repo' '