This is version 4 of my patch series, which aims to improve guessed directory names when we clone a server's root, that is we have empty path components. This version is still preliminary as it is based upon the patches by Peff ([PATCH 0/2] fix clone guess_dir_name regression in v2.4.8) which have not been merged yet. As his patches include newly added tests that allow for cloning from a server's root without using chroot, the patches regarding t1509 have been dropped. I've posted the fixes to them as a separate patch series instead. Previously I've included a guard such that we only try to find the last component if we've got a '/' or ':' in the path. This is not really required, though, as in the case where we ain't got one of those characters we'll simply skip to the beginning again, causing this to be a no-op, due to the port already being stripped. So I've simply dropped the guard to minimize code churn. Patrick Steinhardt (3): clone: do not include authentication data in guessed dir clone: do not use port number as dir name clone: abort if no dir name could be guessed builtin/clone.c | 61 ++++++++++++++++++++++++++++++++++++++++-------- t/t5603-clone-dirname.sh | 10 ++++++-- 2 files changed, 59 insertions(+), 12 deletions(-) -- 2.5.0 -- 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