Otherwise ".git" is removed from every remote path which has it, including "/some/path/somename.git". Signed-off-by: Alex Riesen --- Fixed truncation of "/.git/" (with a trailing slash). The old code broke t5515, because it has left "../.git/" unchanged, but should have removed ".git/". builtin-fetch--tool.c | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-)