Skip to content

Commit 76ac4e6

Browse files
committed
ruff
1 parent ca23a18 commit 76ac4e6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/codegen/git/repo_operator/local_repo_operator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def create_from_repo(cls, repo_path: str, url: str) -> Self:
113113
# If we get here, repo exists but is not up to date or valid
114114
# Remove the existing directory to do a fresh clone
115115
import shutil
116+
116117
shutil.rmtree(repo_path)
117118

118119
# Do a fresh clone with depth=1 to get latest commit

src/codegen/sdk/core/codebase.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,11 +1123,11 @@ def from_repo(cls, repo_name: str, *, tmp_dir: str | None = None, commit: str |
11231123
else:
11241124
# Ensure the operator can handle remote operations
11251125
repo_operator = LocalRepoOperator.create_from_commit(
1126-
repo_path=repo_path,
1127-
default_branch="main", # We'll get the actual default branch after clone
1128-
commit=commit,
1129-
url=repo_url,
1130-
)
1126+
repo_path=repo_path,
1127+
default_branch="main", # We'll get the actual default branch after clone
1128+
commit=commit,
1129+
url=repo_url,
1130+
)
11311131
logger.info("Clone completed successfully")
11321132

11331133
# Initialize and return codebase with proper context

0 commit comments

Comments
 (0)