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

[PATCH QGit] Don't hardcode GIT_EXEC_DIR for Windows so much

From
Markus Heidelberg <markus.heidelberg@web.de>
Date
Apr 18, 2009, 15:04 UTC
Message-ID
<1240067079-31358-1-git-send-email-markus.heidelberg@web.de>

Use the environment variable %ProgramFiles% which points to the right program installation directory, regardless of your system locale.

Also escape the backslash to play it safe.
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
---
 src/src.pro |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/src.pro b/src/src.pro
index 810db28..619a9a8 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -1,6 +1,6 @@
 # Under Windows launch script start_qgit.bat needs the
 # value GIT_EXEC_DIR to be set to the git bin directory
-GIT_EXEC_DIR = "C:\Program Files\Git\bin"
+GIT_EXEC_DIR = "$(ProgramFiles)\\Git\\bin"
 
 # Under Windows uncomment following line to enable console messages
 #CONFIG += ENABLE_CONSOLE_MSG
-- 
1.6.3.rc0.77.g079dc
Message 1 of 1 in “Don't hardcode GIT_EXEC_DIR for Windows so much”
  1. Don't hardcode GIT_EXEC_DIR for Windows so muchMarkus Heidelberg, Apr 18, 2009

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.