-
Notifications
You must be signed in to change notification settings - Fork 721
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
No output, error, or history rewriting in Windows #36
Comments
git 2.16.1 doesn't have the necessary facilities to work with filter-repo; you should be running into this line of code:
I would assume that any string that it doesn't find a translation for it would just return the original and then output it, but I've not heard of anyone else failing to get any output so I am wondering if something is going awry with translations. Without access to the system or more messages or something, it'll be hard for me to debug. But I'd start by either removing the call to the '_' function (just remove the underscore) and see if you get an error message, check for any special environment variables, and upgrade your git version to one that is supported once you do get error messages. Hope that helps you at least get started. |
@newren: Thank you so much for the prompt response and the pointers. I really should have done the due diligence of upgrading each of my distributions before reporting this. At this point, everything is working perfectly. It's really a remarkable tool. I previously used various calls to In the end, there turned out to be three different issues that colluded together to make this a bit harder to troubleshoot. These seem a bit silly now that I've isolated them, but I'm going to leave them here in case they help anyone else reading this in the future:
When combined together, those three issues meant that I would get an error if I put in an obviously incorrect or malformed path, but wouldn't get an error if I put in a valid path that ended in
That said, if I run I'm not entirely sure why this won't execute in the normal PowerShell or git bash. Part of the issue is that I don't have Python in my path, as I normally use it from iPython or the Anaconda PowerShell Prompt. That said, it should accept a fully-qualified path pointing to the Python interpreter; I'm not sure what's going on there, but am going to assume PEBCAK. Thank you again for both your help as well as writing this tool. |
I'm glad it's working for you now. Thanks for the kind words, and the explanation of what you found on your end which might just help someone else if they hit something similar and search through the issues for similar keywords. |
I understand other users have gotten
git-filter-repo
to work on Windows. I've proven unable to, however.I've modified the
git-filter-repo
's#!
line to point to my Python directory (via Anaconda) and executable (python
, notpython3
as noted elsewhere). Given that modification, I no longer get an error when executinggit filter-repo
commands—but neither do I get any output, nor see my git history rewritten. I've tried both--path
and--analyze
arguments.I fully realize this isn't much to go on, so you may not be able to provide much direction. Obviously, if I had an error message, that would provide some pointers on what's failing. Are there log files somewhere I might look for to help provide more details?
FWIW: I'm running on:
git-filter-repo
: v2.24.0The text was updated successfully, but these errors were encountered: