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

Re: how to detect git.exe directory?

From
JSJohannes Sixt <johannes.sixt-dl2ejs2iusazzxs1dc/lvw@public.gmane.org>
Date
Dec 23, 2007, 16:35 UTC
Message-ID
<200712231735.00336.johannes.sixt@telecom.at>
In-Reply-To
<e5bfff550712230825o5e73bd3dm31057847106b8722-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Sunday 23 December 2007 17:25, Marco Costalba wrote:
Show 12 quoted lines
> 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 ?
Running
	git --exec-path
should get you close to it. But I have to question why you need that path.
-- Hannes
Previous: Marco CostalbaNext: Marco Costalba
Message 4 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.