fix: The CLI tool uses .gitignore to filter packaged files during deployment.#1334
fix: The CLI tool uses .gitignore to filter packaged files during deployment.#1334KaneOne wants to merge 2 commits intoappwrite:masterfrom
Conversation
Added support for .gitignore to exclude files during packaging.
Normalize file paths and handle root directory case.
WalkthroughThe change adds .gitignore support to the deployment packaging process in the deployment utility. When packaging files, the code now loads patterns from a .gitignore file in the directory being packaged, if present. The tar creation filtering logic is extended to skip files matching these ignore patterns after normalizing paths. The root or current directory receives special handling to remain included. All existing packaging behavior is preserved, including gzip compression and original working directory context. Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What does this PR do?
fix: The CLI tool uses .gitignore to filter packaged files during deployment.
Summary by CodeRabbit
New Features