-
Notifications
You must be signed in to change notification settings - Fork 14
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
Rename from 'X' to 'Y' failed. #37
Comments
Hey there, thanks for this! Sorry it took a while to answer, I was (and still am) sick. I'll look into this more deeply once I'm well again. |
any news on this? |
nope, sorry, didn't get to it yet. would be grateful to take a PR, though :-) |
I tried using ProjectRenamer for the first time yesterday and ran into this issue. It turned out I had the project folder and some of the subfolders open in Windows Explorer and it must have been holding handles to them or the contents. Once I closed all the folders (actually restarted explorer.exe) the tool worked perfectly. This wouldn't be your issue too? |
That is always a hard issue, if explorer.exe is locking your folders. Not sure if we could fix/recognize that in .NET? |
I would say it was actually a file locked in one of the folders I had open. If this is what was affecting the other users then I don't think it's an issue with ProjectRenamer per se. Anyway I looked into this file locking issue as I have use for it in a project and found some interesting code that attempts to find if and what is locking a file: |
Cool stuff:) |
related: #33 |
First, thanks for this awesome tool. It saved a lot of time.
I'm trying to rename a project from something like
src/SomeThing.Core
tosrc/Something.Core
. This is the command I'm running in a Powershell run as admin:> renameproject.exe SomeThing.Core Something.Core --no-commit --no-paket --no-review
But, after running the above command, the renaming fails with the next output:
After googling a bit, I found this SO answer where a intermediate folder is used to move the src folder to destination. Like:
Changing the
gitMove
method to follow that workaround seems to work. This is thegitMove
method after the change:I'm running Git 2.29.2.windows.2
The text was updated successfully, but these errors were encountered: