File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2538,7 +2538,8 @@ static int repo_init_structure(
25382538 int error = 0 ;
25392539 repo_template_item * tpl ;
25402540 bool external_tpl =
2541- ((opts -> flags & GIT_REPOSITORY_INIT_EXTERNAL_TEMPLATE ) != 0 );
2541+ opts -> template_path != NULL ||
2542+ (opts -> flags & GIT_REPOSITORY_INIT_EXTERNAL_TEMPLATE ) != 0 ;
25422543 mode_t dmode = pick_dir_mode (opts );
25432544 bool chmod = opts -> mode != GIT_REPOSITORY_INIT_SHARED_UMASK ;
25442545
Original file line number Diff line number Diff line change @@ -228,8 +228,7 @@ void test_repo_template__extended_with_template_and_shared_mode(void)
228228 const char * repo_path ;
229229 int filemode ;
230230
231- opts .flags = GIT_REPOSITORY_INIT_MKPATH |
232- GIT_REPOSITORY_INIT_EXTERNAL_TEMPLATE ;
231+ opts .flags = GIT_REPOSITORY_INIT_MKPATH ;
233232 opts .template_path = "template" ;
234233 opts .mode = GIT_REPOSITORY_INIT_SHARED_GROUP ;
235234
You can’t perform that action at this time.
0 commit comments