Skip to content

Commit c46df83

Browse files
committed
Initial
1 parent b89a871 commit c46df83

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

salt_bundle/release.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,10 @@ def commit_index_to_branch(
293293
# Copy index.yaml to branch root
294294
import shutil
295295
branch_index = repo_dir / 'index.yaml'
296-
shutil.copy2(index_file, branch_index)
296+
297+
# Only copy if source and destination are different
298+
if index_file.resolve() != branch_index.resolve():
299+
shutil.copy2(index_file, branch_index)
297300

298301
# Add index.yaml
299302
subprocess.run(

0 commit comments

Comments
 (0)