File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def clone_repository(repo_url, local_dir):
19
19
""" Clone or pull the repository based on its existence. """
20
20
if not os .path .exists (local_dir ):
21
21
print (f"Cloning repository into { local_dir } " )
22
- Repo .clone_from (repo_url , local_dir )
22
+ Repo .clone_from (repo_url , local_dir , depth = 1 )
23
23
else :
24
24
print (f"Repository already exists at { local_dir } . Pulling latest changes..." )
25
25
repo = Repo (local_dir )
@@ -137,7 +137,7 @@ def parse_markdown_file_to_json(file_path):
137
137
for section in sections :
138
138
about = ", " .join (section ["about" ])
139
139
text = " " .join (line for line in section ["text" ] if line )
140
-
140
+
141
141
if about and text : # Only insert if both 'about' and 'text' are not empty
142
142
json_output .append ({
143
143
"id" : current_id ,
You can’t perform that action at this time.
0 commit comments