author | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Sat, 15 Oct 2011 14:05:20 +0000 (15:05 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 16 Oct 2011 03:14:39 +0000 (20:14 -0700) | ||
commit | 13d24b018f348401cceca45da5c0dd6d17411268 | |
tree | 9569fe30551a57e7b69a29128b37a3da4bf95725 | tree | snapshot |
parent | 8850c3da95d17bb23576ee5ee3484bfd3d486444 | commit | diff |
mingw: ensure sockets are initialized before calling gethostname
If the Windows sockets subsystem has not been initialized yet then an
attempt to get the hostname returns an error and prints a warning to the
console. This solves this issue for msysGit as seen with 'git fetch'.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If the Windows sockets subsystem has not been initialized yet then an
attempt to get the hostname returns an error and prints a warning to the
console. This solves this issue for msysGit as seen with 'git fetch'.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c | diff | blob | history | |
compat/mingw.h | diff | blob | history |