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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]