Git: Clone silently does nothing after previously cloned repository is deleted
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Does this issue occur when all extensions are disabled?: **Yes**
* VS Code Version:
* Stable: 1.129.1
* Insiders: 1.131.0
* OS Version:
Windows_NT x64 10.0.26200
### Steps to Reproduce
1. Run **Git: Clone** and clone repository **A**.
2. Verify that the clone completes successfully.
3. Run **Git: Clone** again for repository **A**.
4. Observe that nothing happens (expected because the repository already exists locally).
5. Delete the local copy of repository **A** completely from the filesystem (for example, using `rm -rf ` or permanently deleting it).
6. Run **Git: Clone** again for repository **A**.
### Expected Result
Since the local repository has been deleted, **Git: Clone** should behave as if the repository has never been cloned:
* Prompt for a destination folder.
* Execute the `git clone` command.
### Actual Result
Nothing happens:
* No destination folder picker is shown.
* No `git clone` command is executed.
* The Git Output channel shows no activity.
* No error message or notification is displayed.
### Additional Information
* Reproduces in both **VS Code Stable** and **VS Code Insiders**.
* Reproduces with all extensions disabled.
* Restarting VS Code does not resolve the issue.
* Running **Developer: Reload Window** does not resolve the issue.
* Cloning a different repository that has never been cloned before works as expected.
* The issue only occurs when attempting to clone the same repository after its local copy has been deleted.
* Tested using GitHub repositories over HTTPS.
* A GoogleDrive link for screen recording demonstrating the issue is attached as it was failing to upload directly.
https://drive.google.com/file/d/1Ns3zHbHcrC3lJyP3Xh0kn6Ke1-7D1xCq/view?usp=sharing
Contributor guide
Assessment
This issue has not been assessed yet.