push: propagate remote and refspec with --recurse-submodules
[gitweb.git] / t / t1307-config-blob.sh
index fdc257e66fdc121b9f125466bf38431e3233dd19..eed31ffa30eebaa994b2fee569eb753e2a6a1477 100755 (executable)
@@ -61,10 +61,16 @@ test_expect_success 'parse errors in blobs are properly attributed' '
        git commit -m broken &&
 
        test_must_fail git config --blob=HEAD:config some.value 2>err &&
+       test_i18ngrep "HEAD:config" err
+'
 
-       # just grep for our token as the exact error message is likely to
-       # change or be internationalized
-       grep "HEAD:config" err
+test_expect_success 'can parse blob ending with CR' '
+       printf "[some]key = value\\r" >config &&
+       git add config &&
+       git commit -m CR &&
+       echo value >expect &&
+       git config --blob=HEAD:config some.key >actual &&
+       test_cmp expect actual
 '
 
 test_done