| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
When using `--template-url` with a plain Git URL (e.g., git@bitbucket.org:... or https://example.com/repo.git), the template is cloned via git clone. Previously, the .git folder was left in the new project, causing it to point to the template repository instead of being a fresh project. This change: - Adds git clone support for plain Git URLs (both HTTPS and SSH) - Removes the .git folder after cloning to disassociate from template repo - Handles SSH URLs (git@...) that cannot be parsed as standard URLs - Adds test coverage for the new git clone and .git removal behavior Fixes serverless#11978
- Replace child_process.exec() with spawn() using array arguments - Add input validation to reject URLs with shell metacharacters - Remove console.error in favor of silent error handling - Add test for command injection prevention
|
All contributors have signed the CLA ✍️ ✅ |
Sorry, something went wrong.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Sorry, something went wrong.
|
I have read the CLA Document and I hereby sign the CLA |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When creating a project from a git template URL, the .git folder is copied to the new project, causing git to track the template repository instead of being ready for a new repository.
This change removes the .git folder after cloning the template, so the new project starts fresh without any git history.
Verification
Environment: Darwin (arm64)
Runtime: Node.js v24.11.1
Test Steps
Results
Test Suites: 24 passed, 24 total
Tests: 368 passed, 368 total
All unit tests pass, including new tests that verify the .git folder removal behavior.
Closes: #11978