Skip to content

Commit 903022b

Browse files
authored
Merge pull request #369 from yma955/main
Fix merged zip arcname file path issue
2 parents 97824d8 + 238194e commit 903022b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

charon/cmd/cmd_merge.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ def _create_merged_zip(
151151
for file in files:
152152
file_path = os.path.join(root, file)
153153
# Calculate relative path to preserve directory structure
154-
arcname = os.path.relpath(file_path, root_path)
154+
merged_repos_path = os.path.join(root_path, "merged_repositories")
155+
arcname = os.path.relpath(file_path, merged_repos_path)
155156
zipf.write(file_path, arcname)
156157
logger.info("Done for the merged zip generation: %s", zip_path)

0 commit comments

Comments
 (0)