File tree 2 files changed +3
-3
lines changed 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(
2538
2538
int error = 0 ;
2539
2539
repo_template_item * tpl ;
2540
2540
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 ;
2542
2543
mode_t dmode = pick_dir_mode (opts );
2543
2544
bool chmod = opts -> mode != GIT_REPOSITORY_INIT_SHARED_UMASK ;
2544
2545
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)
228
228
const char * repo_path ;
229
229
int filemode ;
230
230
231
- opts .flags = GIT_REPOSITORY_INIT_MKPATH |
232
- GIT_REPOSITORY_INIT_EXTERNAL_TEMPLATE ;
231
+ opts .flags = GIT_REPOSITORY_INIT_MKPATH ;
233
232
opts .template_path = "template" ;
234
233
opts .mode = GIT_REPOSITORY_INIT_SHARED_GROUP ;
235
234
You can’t perform that action at this time.
0 commit comments