File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3330,10 +3330,9 @@ static void configure_added_submodule(struct add_data *add_data)
3330
3330
char * key ;
3331
3331
struct child_process add_submod = CHILD_PROCESS_INIT ;
3332
3332
struct child_process add_gitmodules = CHILD_PROCESS_INIT ;
3333
-
3334
3333
const struct string_list * values ;
3335
- size_t i ;
3336
3334
int matched = 0 ;
3335
+
3337
3336
key = xstrfmt ("submodule.%s.url" , add_data -> sm_name );
3338
3337
git_config_set_gently (key , add_data -> realrepo );
3339
3338
free (key );
@@ -3385,7 +3384,7 @@ static void configure_added_submodule(struct add_data *add_data)
3385
3384
git_config_set_gently (key , "true" );
3386
3385
free (key );
3387
3386
} else {
3388
- for (i = 0 ; i < values -> nr ; i ++ ) {
3387
+ for (size_t i = 0 ; i < values -> nr ; i ++ ) {
3389
3388
const char * pat = values -> items [i ].string ;
3390
3389
if (!wildmatch (pat , add_data -> sm_path , 0 )) { /* match found */
3391
3390
matched = 1 ;
You can’t perform that action at this time.
0 commit comments