Re: Bug report: git clone with dest
- From
Jeff King <peff@peff.net>
- Date
- Jan 3, 2018, 22:28 UTC
- Message-ID
- <20180103222821.GA32287@sigill.intra.peff.net>
- In-Reply-To
- <CAK2k7nSsygwRj_Hhrz7-qXZ8UBB=O+deOeC2FFTkrGmWSUpKqA@mail.gmail.com>
On Wed, Jan 03, 2018 at 12:59:48PM -0800, Isaac Shabtay wrote:
Show 10 quoted lines
> 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.
Interesting. AFAICT Git has behaved this way for almost 9 years, and now we have two reports in two days. Serendipity, or did something else change? :)
Anyway, you might be interested in the patch series I posted yesterday:
https://public-inbox.org/git/20180102210753.GA10430@sigill.intra.peff.net/
-Peff