tibirna / qgit

Official git repository for QGit.
Other
174 stars 68 forks source link

Git log #17

Open TeLLie opened 6 years ago

TeLLie commented 6 years ago

Hello, I ported this Qgit to OS/2 using cmake Compiling went well, but when i load a git repo to it i see "ERROR: unable to start 'git log'

we have git 2.11.0

i have uncomment USE_QPROCESS in dataloader.h and now is the error about git log gone, only now i see other error: See https://i.imgur.com/J0CKL7z.png

Any idea how this get fixed?

tibirna commented 6 years ago

I never used OS/2. It seems to me that in both situations the qgit process can't launch the git process. You say you have it installed. Then it's either not in the default PATH or it triggers some error when launched with execv() and family (e.g. the user launching qgit doesn't have the right to launch git).

tibirna commented 6 years ago

For the second problem, did you try to launch the command displayed in the error directly in a terminal, in the git repo you are trying to visualize in qgit?

TeLLie commented 6 years ago

Hello, First thankz for you're fast response :) When i try on cmd line it started git but it seems noting happens, after 5 min i use cntrl c to stop it... Is seems it's waiting on nfo from stdin...

Any idea how to debug this, as im not knowing much about debuging.

tibirna commented 6 years ago

As I said, I don't know much about OS/2 so I can't help.

A quick search for "Unable to start process" yields this: https://developercommunity.visualstudio.com/content/problem/27564/git-unable-to-start-process.html

From the discussion there, it seems an issue of timing can exist. Look in 'myprocess.cpp' at line 58-60. Play with the timeout value (right now it is maximum 200ms).

Good luck with your investigation. Sorry to not be able to help more.

TeLLie commented 6 years ago

Hi, I been playing with values but it seems it makes no diff, as soon the program starts en loads the repo in Qgit, that error pops up.

Where is Qgit waiting for, as -stdin means input comes from stdin? And where is the process starting ?