We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15e1193 commit 8e912e7Copy full SHA for 8e912e7
tests/repo/init.c
@@ -320,6 +320,17 @@ void test_repo_init__sets_logAllRefUpdates_according_to_type_of_repository(void)
320
assert_config_entry_on_init_bytype("core.logallrefupdates", true, false);
321
}
322
323
+void test_repo_init__empty_template_path(void)
324
+{
325
+ git_repository_init_options opts = GIT_REPOSITORY_INIT_OPTIONS_INIT;
326
+ opts.template_path = "";
327
+
328
+ cl_git_pass(git_futils_mkdir("foo", 0755, 0));
329
+ cl_git_pass(git_repository_init_ext(&_repo, "foo", &opts));
330
331
+ cleanup_repository("foo");
332
+}
333
334
void test_repo_init__extended_0(void)
335
{
336
git_repository_init_options opts = GIT_REPOSITORY_INIT_OPTIONS_INIT;
0 commit comments