git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Marco Costalba" <mcostalba@gmail.com>
To: "Abdelrazak Younes" <younes.a@free.fr>
Cc: msysgit@googlegroups.com, "Git Mailing List" <git@vger.kernel.org>
Subject: Re: [msysgit] how to detect git.exe directory?
Date: Sun, 23 Dec 2007 21:04:13 +0100	[thread overview]
Message-ID: <e5bfff550712231204m6dad571ct8c2f5e2eb4a23de0@mail.gmail.com> (raw)
In-Reply-To: <476EBADE.6080805@free.fr>

On Dec 23, 2007 8:45 PM, Abdelrazak Younes <younes.a@free.fr> wrote:
> 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)

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

      reply	other threads:[~2007-12-23 20:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-23 16:25 [msysgit] how to detect git.exe directory? Marco Costalba
     [not found] ` <e5bfff550712230825o5e73bd3dm31057847106b8722-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-12-23 16:35   ` Johannes Sixt
     [not found]     ` <200712231735.00336.johannes.sixt-dl2ejS2iUSazZXS1Dc/lvw@public.gmane.org>
2007-12-23 16:53       ` Marco Costalba
     [not found]         ` <e5bfff550712230853u1bc0160ap936c2d0a6fe0203b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-12-23 19:51           ` Abdelrazak Younes
2007-12-23 19:45 ` [msysgit] " Abdelrazak Younes
2007-12-23 20:04   ` Marco Costalba [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e5bfff550712231204m6dad571ct8c2f5e2eb4a23de0@mail.gmail.com \
    --to=mcostalba@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=msysgit@googlegroups.com \
    --cc=younes.a@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).