git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [msysgit] how to detect git.exe directory?

From
AYAbdelrazak Younes <younes.a@free.fr>
Date
Dec 23, 2007, 19:45 UTC
Message-ID
<476EBADE.6080805@free.fr>
In-Reply-To
<e5bfff550712230825o5e73bd3dm31057847106b8722@mail.gmail.com>
Marco Costalba wrote:
Show 7 quoted lines
> Hi all,
> 
>    I'm progressing on qgit installer for windows, I have switched to
> MSVC for compiling Qt4 and qgit sources and I have to say that first
> results are very good, qgit.exe now seems to work without problems or
> artifacts and the speed is much more similar to what we achieve under
> the Linux platform (read much higher).

Glad you manage to do it by yourself. Sorry for not going further with compilation as I promised but the git repository had only a MSVC2008 solution file and I have only MSVC2005 here. I tried to adapt our CMake files to qgit but failed...

> 
> So it seems Qt+mingw is not the _best_ possible solution.
I told you that ;-)
Show 12 quoted lines
> 
> Anyhow, under Vista you cannot simply copy qgit.exe in the git
> directory (OS barfs regarding some administrative rights, note that *I
> am* the administartor!), so to make qgit.exe work git.exe file must be
> in PATH.
> 
> To easy the user and allowing to call qgit.exe double clicking on a
> nice desktop icon I need a way to know where git.exe is installed *at
> runtime*.
> 
> So my question is: "What is the preferred way to detect git directory
> at runtime for msysgit files?"

If you use QProcess to launch git, maybe you could just use QProcess::workingDirectory()?

Abdel.
Previous: Marco CostalbaNext: Marco Costalba
Message 2 of 6 in “[msysgit] how to detect git.exe directory?”
  1. Marco CostalbaDec 23, 2007
  2. Abdelrazak YounesDec 23, 2007
  3. Marco CostalbaDec 23, 2007
  4. Johannes SixtDec 23, 2007
  5. Marco CostalbaDec 23, 2007
  6. Abdelrazak YounesDec 23, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.