Skip to content

Commit b2b7066

Browse files
author
Codeflash Bot
committed
fix
1 parent 98eddbd commit b2b7066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeflash/code_utils/git_worktree_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def create_worktree_snapshot_commit(worktree_dir: Path, commit_message: str) ->
2121
username = None
2222
email = None
2323
with repository.config_reader() as cr:
24-
username = cr.remove_option("user", "name")
25-
email = cr.remove_option("user", "email")
24+
username = cr.get("user", "name")
25+
email = cr.get("user", "email")
2626
repository.git.config()
2727
with repository.config_writer() as cw:
2828
if not cw.has_option("user", "name"):

0 commit comments

Comments
 (0)