-
Notifications
You must be signed in to change notification settings - Fork 740
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
Can't get it to work on Windows #193
Comments
Shebang: Shebang: Shebang: |
1 similar comment
Shebang: Shebang: Shebang: |
Did you read https://github.com/newren/git-filter-repo/blob/main/INSTALL.md (linked to from the main page) and particularly the NOTES for windows users? Did you try things mentioned in the three links from there? |
I did read through those yes. Did not help though. I did a rebase instead 😁 |
Hello there, @Slion you are not right, it works on Windows. In my case i have hundred of git repositories, and i develop and test in Windows system. And i have a quite complex setup. I run python code, i generate a shell script and the shell script calls the git-filter-repo, and all this works well on Windows. So i dont see any issue here. Solution: |
I haven't figured this all the way out, but in Python 3.9.0, which is the one I downloaded from python.org (not the windows store version), it seems that the default instructions of replacing: #!/usr/bin/env python3 with whatever your version of python is (e.g. mine is 'py'), resulting in: #!/usr/bin/env py Don't quite work because I'm pretty sure that 'py' is itself interpreting the '#!' and launching another 'py' process, leaving the machine with an infinitely growing list of 'py' processes... One would think that the way to fix it would be to add '-x' to the shebang line (which causes python to ignore the first line of the file), but I still haven't managed it. |
@SteveBenz Probably way to late to help you, but as a Windows user I also struggeled for hours trying to get this to work. I entered the same trap as you mention by changing the shebang to Anyways, what ended up working for me was changing the shebang to |
@Slion try changing shebang value to Also, don't run cmd shell under Administrator as you won't have rights to access MS Store version of Python (it is installed under user's profile). |
I updated the INSTALL.md file to point out that folks can just run |
All I get is
error: cannot spawn git-filter-repo: Exec format error
.Used Python as provided from Microsoft Store.
Installed git-filter-repo using pip.
Copied script to git folder.
Try run it.
Get error mentioned above.
Tried to change the shebang line, no joy.
The text was updated successfully, but these errors were encountered: