Revision 2a983b227dd6df4d8db6e53e2f5be8afad061b60 authored by Junio C Hamano on 13 June 2019, 20:19:43 UTC, committed by Junio C Hamano on 13 June 2019, 20:19:43 UTC
The ownership rule for the file descriptor to fast-import remote backend was mixed up, leading to unrelated file descriptor getting closed, which has been fixed. * mh/import-transport-fd-fix: Use xmmap_gently instead of xmmap in use_pack dup() the input fd for fast-import used for remote helpers
strdup.c
#include "../git-compat-util.h"
char *gitstrdup(const char *s1)
{
size_t len = strlen(s1) + 1;
char *s2 = malloc(len);
if (s2)
memcpy(s2, s1, len);
return s2;
}
Computing file changes ...