mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
Revert "chore: add debug prints for attribute_co_authored_by"
This reverts commit d1437b7666
.
This commit is contained in:
parent
0a59c38f31
commit
e1820522db
2 changed files with 0 additions and 10 deletions
|
@ -501,7 +501,6 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
|
|
||||||
# Parse again to include any arguments that might have been defined in .env
|
# Parse again to include any arguments that might have been defined in .env
|
||||||
args = parser.parse_args(argv)
|
args = parser.parse_args(argv)
|
||||||
print(f"DEBUG: After final parse, args.attribute_co_authored_by = {args.attribute_co_authored_by}") # DEBUG
|
|
||||||
|
|
||||||
if git is None:
|
if git is None:
|
||||||
args.git = False
|
args.git = False
|
||||||
|
@ -892,7 +891,6 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
repo = None
|
repo = None
|
||||||
if args.git:
|
if args.git:
|
||||||
try:
|
try:
|
||||||
print(f"DEBUG: Before GitRepo init, args.attribute_co_authored_by = {args.attribute_co_authored_by}") # DEBUG
|
|
||||||
repo = GitRepo(
|
repo = GitRepo(
|
||||||
io,
|
io,
|
||||||
fnames,
|
fnames,
|
||||||
|
|
|
@ -60,7 +60,6 @@ class GitRepo:
|
||||||
git_commit_verify=True,
|
git_commit_verify=True,
|
||||||
attribute_co_authored_by=False, # Added parameter
|
attribute_co_authored_by=False, # Added parameter
|
||||||
):
|
):
|
||||||
print(f"DEBUG: GitRepo.__init__ received attribute_co_authored_by = {attribute_co_authored_by}") # DEBUG
|
|
||||||
self.io = io
|
self.io = io
|
||||||
self.models = models
|
self.models = models
|
||||||
|
|
||||||
|
@ -72,7 +71,6 @@ class GitRepo:
|
||||||
self.attribute_commit_message_author = attribute_commit_message_author
|
self.attribute_commit_message_author = attribute_commit_message_author
|
||||||
self.attribute_commit_message_committer = attribute_commit_message_committer
|
self.attribute_commit_message_committer = attribute_commit_message_committer
|
||||||
self.attribute_co_authored_by = attribute_co_authored_by # Assign from parameter
|
self.attribute_co_authored_by = attribute_co_authored_by # Assign from parameter
|
||||||
print(f"DEBUG: GitRepo.__init__ set self.attribute_co_authored_by = {self.attribute_co_authored_by}") # DEBUG
|
|
||||||
self.commit_prompt = commit_prompt
|
self.commit_prompt = commit_prompt
|
||||||
self.subtree_only = subtree_only
|
self.subtree_only = subtree_only
|
||||||
self.git_commit_verify = git_commit_verify
|
self.git_commit_verify = git_commit_verify
|
||||||
|
@ -119,8 +117,6 @@ class GitRepo:
|
||||||
if not fnames and not self.repo.is_dirty():
|
if not fnames and not self.repo.is_dirty():
|
||||||
return
|
return
|
||||||
|
|
||||||
print(f"DEBUG: GitRepo.commit start, self.attribute_co_authored_by = {self.attribute_co_authored_by}") # DEBUG
|
|
||||||
|
|
||||||
diffs = self.get_diffs(fnames)
|
diffs = self.get_diffs(fnames)
|
||||||
if not diffs:
|
if not diffs:
|
||||||
return
|
return
|
||||||
|
@ -145,8 +141,6 @@ class GitRepo:
|
||||||
attribute_commit_message_committer = self.attribute_commit_message_committer
|
attribute_commit_message_committer = self.attribute_commit_message_committer
|
||||||
attribute_co_authored_by = getattr(self, 'attribute_co_authored_by', False)
|
attribute_co_authored_by = getattr(self, 'attribute_co_authored_by', False)
|
||||||
|
|
||||||
print(f"DEBUG: GitRepo.commit after retrieval, attribute_co_authored_by = {attribute_co_authored_by}") # DEBUG
|
|
||||||
|
|
||||||
commit_message_trailer = ""
|
commit_message_trailer = ""
|
||||||
prefix_commit_message = False
|
prefix_commit_message = False
|
||||||
use_attribute_author = False
|
use_attribute_author = False
|
||||||
|
@ -159,7 +153,6 @@ class GitRepo:
|
||||||
|
|
||||||
# Determine author/committer modification and trailer
|
# Determine author/committer modification and trailer
|
||||||
|
|
||||||
print(f"DEBUG: GitRepo.commit before logic check, attribute_co_authored_by = {attribute_co_authored_by}") # DEBUG
|
|
||||||
if attribute_co_authored_by:
|
if attribute_co_authored_by:
|
||||||
model_name = "unknown-model"
|
model_name = "unknown-model"
|
||||||
if coder and hasattr(coder, "main_model") and coder.main_model.name:
|
if coder and hasattr(coder, "main_model") and coder.main_model.name:
|
||||||
|
@ -208,7 +201,6 @@ class GitRepo:
|
||||||
committer_name = f"{original_user_name} (aider)"
|
committer_name = f"{original_user_name} (aider)"
|
||||||
|
|
||||||
# Apply author/committer modifications based on flags determined earlier
|
# Apply author/committer modifications based on flags determined earlier
|
||||||
print(f"DEBUG: GitRepo.commit before setting env, use_attribute_author={use_attribute_author}, use_attribute_committer={use_attribute_committer}") # DEBUG
|
|
||||||
if use_attribute_committer:
|
if use_attribute_committer:
|
||||||
os.environ["GIT_COMMITTER_NAME"] = committer_name
|
os.environ["GIT_COMMITTER_NAME"] = committer_name
|
||||||
if use_attribute_author:
|
if use_attribute_author:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue