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

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

From
MCMarco Costalba <mcostalba@gmail.com>
Date
Dec 23, 2007, 20:04 UTC
Message-ID
<e5bfff550712231204m6dad571ct8c2f5e2eb4a23de0@mail.gmail.com>
In-Reply-To
<476EBADE.6080805@free.fr>
On Dec 23, 2007 8:45 PM, Abdelrazak Younes <younes.a@free.fr> wrote:
Show 8 quoted lines
> Marco Costalba wrote:
> > Hi all,
> >
> 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...
>

Don't worry, I have installed MSVC2008, compiled Qt4 (and everithing went smooth) and bruefly tested qgit: it really seems to work, now following steps are:

- Detect git.exe directory at runtime also when is not in PATH (see below)
- Manage to package qgit and others needed files in a windows
installer (I know very little about this)
Show 7 quoted lines
>
> > 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()?
>

It's not the repository that I don't find, but the git binary directory. I explain better. If I open a console under windows with cmd.exe and type "git" when I hit enter button I have an error message that says that "command git is not known"

This is because git.exe directory is _not_ (normally) in PATH environment variable.

So, or msysgit installation *modifies* the user PATH adding the bin directory, or I have to found git bin directory myself and manage to add to the PATH of qgit process environment.

The question is: "How I find git.exe??"
Marco
Previous: Abdelrazak YounesNext: Johannes Sixt
Message 3 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.