Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kinshuksinghbist committed Feb 14, 2025
1 parent ff9d08c commit 839ad93
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/modules/code_provider/local_repo/local_repo_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ async def _fetch_repo_structure_async(
current_depth = len(path.split("/")) if path else 0

# If we've reached max depth, return truncated indicator
# if current_depth >= self.max_depth:
# return {
# "type": "directory",
# "name": path.split("/")[-1] or repo.name,
# "children": [{"type": "file", "name": "...", "path": "truncated"}],
# }
if current_depth >= self.max_depth:
return {
"type": "directory",
"name": path.split("/")[-1] or repo.name,
"children": [{"type": "file", "name": "...", "path": "truncated"}],
}

structure = {
"type": "directory",
Expand Down

0 comments on commit 839ad93

Please sign in to comment.