-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git clean on a specific file does nothing #2499
Comments
This sounds like it might be fixed by https://github.com/git/git/pull/692/commits, in particular it looks very similar to the bug demonstrated in As this patch series already made it into the
|
@dscho Thanks for the steps, though they seem not to work as instructed: Any help? |
Please call |
Got it. Missed that I had to launch the SDK bash.
|
I just tried the very same repro with https://wingit.blob.core.windows.net/files/PortableGit-prerelease-2.25.0.windows.1.17.g89a5bbfd1e-64-bit.7z.exe and reproduced it. Then, I built To make sure that you are using the correct cp.spawnSync(git, ['version'], { stdio: ['inherit', 'inherit', 'inherit'] }); and make sure that it displays this:
|
(By the way, I do not think that node.js needs to be involved, so a more minimal repro would have used |
I don't know what exactly Node does, but those DLLs live in the |
(To fix those warnings, you will have to add |
Okay, I'll just assume that your testing confirms my testing. |
Setup
defaults?
Portable Git
Details
CMD
Minimal, Complete, and Verifiable example
this will help us understand the issue.
First, let's create a repo with a file inside a folder:
Then, place the following
bug.js
node.js script at the root of the repo:Then simply run it:
Just like @eamodio in #2478, I am shelling out to
git
viaspawn
. This works on 2.24. Doesn't work any more on 2.25.Can't repro if the target file is at the root of the repository.
I expect the file to be deleted from disk.
Nothing happens.
The text was updated successfully, but these errors were encountered: