git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Bug report: git clone with dest

From
Isaac Shabtay <isaac@shabtay.com>
Date
Jan 3, 2018, 20:59 UTC
Message-ID
<CAK2k7nSsygwRj_Hhrz7-qXZ8UBB=O+deOeC2FFTkrGmWSUpKqA@mail.gmail.com>

Hello, Target directory is deleted on clone failures.

Steps to reproduce, for example on Windows:

cd /d %TEMP% mkdir dest git clone https://some-fake-url/whatever-makes-git-clone-fail dest

Of course, the clone will fail as it should. But looks like the Git client also ends up deleting the "dest" directory.

This shouldn't happen.
Next: Jeff King
Message 1 of 19 in “Bug report: git clone with dest”
  1. Isaac ShabtayJan 3, 2018
  2. Jeff KingJan 3, 2018
  3. Isaac ShabtayJan 3, 2018
  4. Johannes SchindelinJan 4, 2018
  5. Isaac ShabtayJan 5, 2018
  6. Johannes SchindelinJan 5, 2018
  7. Isaac ShabtayJan 5, 2018
  8. Johannes SchindelinJan 5, 2018
  9. Junio C HamanoJan 5, 2018
  10. Jeff KingJan 5, 2018
  11. Johannes SchindelinJan 5, 2018
  12. Jeff KingJan 4, 2018
  13. Junio C HamanoJan 5, 2018
  14. Jeff KingJan 5, 2018
  15. Junio C HamanoJan 5, 2018
  16. Jeff KingJan 5, 2018
  17. Junio C HamanoJan 5, 2018
  18. Jeff KingJan 6, 2018
  19. Johannes SchindelinJan 5, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.