1
0
mirror of https://github.com/git/git.git synced 2025-04-05 21:47:58 +00:00
git/compat
Johannes Sixt 35eeef4722 Windows: Make sure argv[0] has a path
Since the exec-path on Windows is derived from the program invocation path,
we must ensure that argv[0] always has a path. Unfortunately, if a program
is invoked from CMD, argv[0] has no path. But on the other hand, the
C runtime offers a global variable, _pgmptr, that always has the full path
to the program. We hook into main() with a preprocessor macro, where we
replace argv[0].

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2008-07-25 17:41:13 -07:00
..
2007-09-06 22:46:00 -07:00
2008-07-25 17:41:13 -07:00
2007-06-07 00:04:01 -07:00
2008-06-22 11:32:45 +02:00