1
0
mirror of https://github.com/git/git.git synced 2024-10-19 23:28:32 +02:00
git/compat
Johannes Sixt 2affea4125 start_command: do not clobber cmd->env on Windows code path
Previously, it would not be possible to call start_command twice for the
same struct child_process that has env set.

The fix is achieved by moving the loop that modifies the environment block
into a helper function. This also allows us to make two other helper
functions static.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2009-09-11 16:33:54 -07:00
..
fnmatch Fix more typos/spelling in comments 2009-04-22 19:03:39 -07:00
nedmalloc Fix typo in nedmalloc warning fix 2009-06-11 14:18:52 -07:00
regex Fix typos / spelling in comments 2009-04-22 19:02:12 -07:00
basename.c compat: add a basename() compatibility function 2009-05-31 17:57:59 -07:00
bswap.h make sure byte swapping is optimal for git 2009-08-18 14:16:37 -07:00
cygwin.c Fix more typos/spelling in comments 2009-04-22 19:03:39 -07:00
cygwin.h cygwin: Use native Win32 API for stat 2008-09-30 14:30:06 -07:00
fopen.c
hstrerror.c
inet_ntop.c
inet_pton.c
memmem.c optimize compat/ memmem() 2009-03-02 18:28:06 -08:00
mingw.c start_command: do not clobber cmd->env on Windows code path 2009-09-11 16:33:54 -07:00
mingw.h start_command: do not clobber cmd->env on Windows code path 2009-09-11 16:33:54 -07:00
mkdtemp.c
mkstemps.c compat: add a mkstemps() compatibility function 2009-05-31 17:56:44 -07:00
mmap.c
pread.c
qsort.c
setenv.c
snprintf.c compat/snprintf.c: clarify SNPRINTF_SIZE_CORR 2009-08-21 18:48:01 -07:00
strcasestr.c
strlcpy.c
strtoumax.c
unsetenv.c
win32.h mingw: move common functionality to win32.h 2008-09-30 14:30:06 -07:00
win32mmap.c MinGW: implement mmap 2009-03-18 19:23:04 -07:00
winansi.c Work around a regression in Windows 7, causing erase_in_line() to crash sometimes 2009-06-01 00:08:54 -07:00