mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-02 23:21:25 +00:00
Added flag GIT_REPOSITORY_INIT_EXTERNAL_TEMPLATE to test_repo_init__extended_with_template().
Otherwise the template functionallity is not tested (as a TODO we also shall test that the specified template really got copied).
This commit is contained in:
parent
e2d2c6e57d
commit
4a4aee1112
@ -367,7 +367,7 @@ void test_repo_init__extended_with_template(void)
|
||||
{
|
||||
git_repository_init_options opts = GIT_REPOSITORY_INIT_OPTIONS_INIT;
|
||||
|
||||
opts.flags = GIT_REPOSITORY_INIT_MKPATH | GIT_REPOSITORY_INIT_BARE;
|
||||
opts.flags = GIT_REPOSITORY_INIT_MKPATH | GIT_REPOSITORY_INIT_BARE | GIT_REPOSITORY_INIT_EXTERNAL_TEMPLATE;
|
||||
opts.template_path = cl_fixture("template");
|
||||
|
||||
cl_git_pass(git_repository_init_ext(&_repo, "templated.git", &opts));
|
||||
|
Loading…
Reference in New Issue
Block a user