-
-
Notifications
You must be signed in to change notification settings - Fork 937
git log -L rejected despite being correct #273
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
Comments
Will you please tell me what code you execute to get to which error, exactly ? Also which version of GitPython are you using, and on which platform ? Thanks |
This is the bit of code I'm executing
I am using v0.3.6 on Linux. |
I think what you should try to do is to pass each argument as a single string. GitPython executes git without a surrounding shell, so for git your command would look like "a very long single argument", even though it is in fact multiple ones. |
Well it is one long single argument It's just |
What about this: repo.git.log('-L', '"^/function before/",+5:' + filepath) |
Unfortunately I still get the same error. |
An error you never posted here despite me asking for it. I'd like to see the full stack trace. |
I have just had a look at it again, and realized that I am totally out of ideas here. As there is absolutely no evidence that this is related to GitPython at all, you are just using the git command wrapper, I am closing this issue. |
GitPython seems to not understand the form
git log -L start,end:file
where start is a regex.The text was updated successfully, but these errors were encountered: