We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 709b1b6 commit bc0d1adCopy full SHA for bc0d1ad
tests/repo/template.c
@@ -293,3 +293,13 @@ void test_repo_template__empty_template_path(void)
293
294
setup_repo("foo", &opts);
295
}
296
+
297
+void test_repo_template__nonexistent_template_path(void)
298
+{
299
+ git_repository_init_options opts = GIT_REPOSITORY_INIT_OPTIONS_INIT;
300
301
+ opts.flags = GIT_REPOSITORY_INIT_MKPATH | GIT_REPOSITORY_INIT_EXTERNAL_TEMPLATE;
302
+ opts.template_path = "/tmp/path/that/does/not/exist/for/libgit2/test";
303
304
+ setup_repo("bar", &opts);
305
+}
0 commit comments