@@ -23,7 +23,7 @@ def create_worktree_snapshot_commit(worktree_dir: Path, commit_message: str) ->
2323 no_username = False
2424 email = None
2525 no_email = False
26- with repository .config_reader () as cr :
26+ with repository .config_reader (config_level = "repository" ) as cr :
2727 try :
2828 username = cr .get ("user" , "name" )
2929 except configparser .NoSectionError :
@@ -32,15 +32,15 @@ def create_worktree_snapshot_commit(worktree_dir: Path, commit_message: str) ->
3232 email = cr .get ("user" , "email" )
3333 except configparser .NoSectionError :
3434 no_email = True
35- with repository .config_writer () as cw :
35+ with repository .config_writer (config_level = "repository" ) as cw :
3636 if not cw .has_option ("user" , "name" ):
3737 cw .set_value ("user" , "name" , "Codeflash Bot" )
3838 if not cw .has_option ("user" , "email" ):
3939 cw .set_value ("user" , "email" , "bot@codeflash.ai" )
4040
4141 repository .git .add ("." )
4242 repository .git .commit ("-m" , commit_message , "--no-verify" )
43- with repository .config_writer () as cw :
43+ with repository .config_writer (config_level = "repository" ) as cw :
4444 if username :
4545 cw .set_value ("user" , "name" , username )
4646 elif no_username :
0 commit comments