On 17.12.15 01:26, Stefan Beller wrote: > A new version of the patch, which spells out more its intent and > may actually work in Windows. > > Any comment welcome, > Thanks, > Stefan > > Stefan Beller (1): > submodule: Port resolve_relative_url from shell to C > > builtin/submodule--helper.c | 151 ++++++++++++++++++++++++++++++++++++++++++++ > git-submodule.sh | 81 ++---------------------- > 2 files changed, 155 insertions(+), 77 deletions(-) > > interdiff to previous version: > > diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c > index f48b5b5..b925bed 100644 > --- a/builtin/submodule--helper.c > +++ b/builtin/submodule--helper.c > @@ -31,6 +31,36 @@ static const char *get_default_remote(void) > return xstrdup(dest); > } > > +static int has_same_dir_prefix(const char *str, const char **out) > +{ > +#ifdef GIT_WINDOWS_NATIVE Should that be if defined(GIT_WINDOWS_NATIVE) || defined(__CYGWIN__) -- 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