@@ -225,7 +225,7 @@ static void init_git_config(void)
225
225
static void cleanup_git_config (int nongit )
226
226
{
227
227
const char * value ;
228
- if (!git_config_get_value ( "cinnabar.fsck" , & value )) {
228
+ if (!repo_config_get_value ( the_repository , "cinnabar.fsck" , & value )) {
229
229
// We used to set cinnabar.fsck globally, then locally.
230
230
// Remove both.
231
231
char * user_config , * xdg_config ;
@@ -235,23 +235,23 @@ static void cleanup_git_config(int nongit)
235
235
xdg_config &&
236
236
!access_or_warn (xdg_config , R_OK , 0 ))
237
237
{
238
- git_config_set_in_file_gently (
239
- xdg_config , "cinnabar.fsck" , NULL ,
240
- NULL );
238
+ repo_config_set_in_file_gently (
239
+ the_repository , xdg_config ,
240
+ "cinnabar.fsck" , NULL , NULL );
241
241
} else {
242
- git_config_set_in_file_gently (
243
- user_config , "cinnabar.fsck" , NULL ,
244
- NULL );
242
+ repo_config_set_in_file_gently (
243
+ the_repository , user_config ,
244
+ "cinnabar.fsck" , NULL , NULL );
245
245
}
246
246
}
247
247
free (user_config );
248
248
free (xdg_config );
249
249
if (!nongit ) {
250
250
user_config = repo_git_path (the_repository , "config" );
251
251
if (user_config ) {
252
- git_config_set_in_file_gently (
253
- user_config , "cinnabar.fsck" , NULL ,
254
- NULL );
252
+ repo_config_set_in_file_gently (
253
+ the_repository , user_config ,
254
+ "cinnabar.fsck" , NULL , NULL );
255
255
}
256
256
free (user_config );
257
257
}
@@ -389,7 +389,7 @@ int init_cinnabar(const char *argv0)
389
389
390
390
init_git_config ();
391
391
setup_git_directory_gently (& nongit );
392
- git_config ( git_diff_basic_config , NULL );
392
+ repo_config ( the_repository , git_diff_basic_config , NULL );
393
393
cleanup_git_config (nongit );
394
394
save_commit_buffer = 0 ;
395
395
warn_on_object_refname_ambiguity = 0 ;
0 commit comments