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

[msysgit] how to detect git.exe directory?

From
MCMarco Costalba <mcostalba@gmail.com>
Date
Dec 23, 2007, 16:25 UTC
Message-ID
<e5bfff550712230825o5e73bd3dm31057847106b8722@mail.gmail.com>
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).
So it seems Qt+mingw is not the _best_ possible solution.

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?"

- environment variable ??
- windows registry ??
- others ?

I don't plan to use the cygwin version of git but going directly to the "long term" solution that is msysgit.

Thanks for your help Marco

Next: Abdelrazak Younes
Message 1 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.