-
Notifications
You must be signed in to change notification settings - Fork 27
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 update does not exist? #4
Comments
This line actually calls I don't own any Windows systems, so it's difficult for me to reproduce this issue -- sorry. |
Also -- trac-github used to call
|
oops, sorry missed the remote part. For some reason its silently failing then. Checking procmon it is calling the right commandline. Although for some reason it is calling it 4 times. I don't really know python so not sure how to debug this further. |
This command line looks correct. What happens if you run it in a shell — ie. you start cmd.exe and run |
Its runs correctly. It says "Fetching origin", grabs the changes and then exits. |
If I understand correctly, trac-github is calling the right command line, and that command line works as expected. So... where's the problem? :) Here's how to debug this further:
|
This is all the debug log says. 2012-10-15 16:04:37,944 Trac[main] DEBUG: Dispatching <Request "POST '/github'"> Also before I did add some logging to track it down to the update line. It executes up to that line but nothing after it. |
Ah, now I understand. I'd say that when the Python process calls git, it gets stuck somewhere, and hangs forever. Hence the "update" line never returns and there are no logs. As you've seen in the code, I'm using the Does my theory match what you're seeing? If it does, I'd say this is a bug in PyGIT, which is rather outside my area of expertise. Since PyGIT is shipped with Trac, I'd suggest reporting the bug to its authors. |
Yup that sounds about right. Just checked the process list and there is about 50+ git/cmd/ssh processes. I wonder if there is a way to get the output from them. Anyways, thank you for the help. |
https://github.com/aaugustin/trac-github/blob/master/tracext/github.py#L121
Is git update an aliased command? With the default msysgit install that command seems to be missing. Changing it to git fetch works though.
Thank you for the plugin.
The text was updated successfully, but these errors were encountered: