File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,21 +47,21 @@ static int transport_color_config(void)
4747 "color.transport.reset" ,
4848 "color.transport.rejected"
4949 }, * key = "color.transport" ;
50- char * value ;
50+ const char * value ;
5151 static int initialized ;
5252
5353 if (initialized )
5454 return 0 ;
5555 initialized = 1 ;
5656
57- if (!repo_config_get_string (the_repository , key , & value ))
57+ if (!repo_config_get_string_tmp (the_repository , key , & value ))
5858 transport_use_color = git_config_colorbool (key , value );
5959
6060 if (!want_color_stderr (transport_use_color ))
6161 return 0 ;
6262
6363 for (size_t i = 0 ; i < ARRAY_SIZE (keys ); i ++ )
64- if (!repo_config_get_string (the_repository , keys [i ], & value )) {
64+ if (!repo_config_get_string_tmp (the_repository , keys [i ], & value )) {
6565 if (!value )
6666 return config_error_nonbool (keys [i ]);
6767 if (color_parse (value , transport_colors [i ]) < 0 )
You can’t perform that action at this time.
0 commit comments