Skip to content

Commit 109b812

Browse files
committed
fix
1 parent 3efcec2 commit 109b812

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

api/git_utils/git_utils.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,7 @@ def classify_changes(diff, ignore_list: List[str]) -> tuple[list[Path], list[Pat
6161
return added, deleted, modified
6262

6363
# build a graph capturing the git commit history
64-
def build_commit_graph(
65-
path: str,
66-
repo_name: str,
6764
def build_commit_graph(path: str, repo_name: str, ignore_list: Optional[List[str]] = None) -> GitGraph:
68-
if ignore_list is None:
69-
ignore_list = []
70-
# ... rest of the function implementation ...
71-
) -> GitGraph:
7265
"""
7366
Builds a graph representation of the git commit history.
7467
@@ -81,6 +74,9 @@ def build_commit_graph(path: str, repo_name: str, ignore_list: Optional[List[str
8174
GitGraph: Graph object representing the commit history.
8275
"""
8376

77+
if ignore_list is None:
78+
ignore_list = []
79+
8480
# Copy the graph into a temporary graph
8581
logging.info(f"Cloning source graph {repo_name} -> {repo_name}_tmp")
8682
# Will be deleted at the end of this function

0 commit comments

Comments
 (0)