commit: fix empty commit creation when there's no changes but ita entries
[gitweb.git] / t / t0001-init.sh
index a6fdd5ef3a66f06f5b4a787ca8ad8db2ab4da96f..8ffbbea4d65dbd8328563da53ef2959dd39ce796 100755 (executable)
@@ -384,4 +384,13 @@ test_expect_success MINGW 'bare git dir not hidden' '
        ! is_hidden newdir
 '
 
+test_expect_success 'remote init from does not use config from cwd' '
+       rm -rf newdir &&
+       test_config core.logallrefupdates true &&
+       git init newdir &&
+       echo true >expect &&
+       git -C newdir config --bool core.logallrefupdates >actual &&
+       test_cmp expect actual
+'
+
 test_done