We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b89a871 commit c46df83Copy full SHA for c46df83
salt_bundle/release.py
@@ -293,7 +293,10 @@ def commit_index_to_branch(
293
# Copy index.yaml to branch root
294
import shutil
295
branch_index = repo_dir / 'index.yaml'
296
- shutil.copy2(index_file, branch_index)
+
297
+ # Only copy if source and destination are different
298
+ if index_file.resolve() != branch_index.resolve():
299
+ shutil.copy2(index_file, branch_index)
300
301
# Add index.yaml
302
subprocess.run(
0 commit comments