[PATCH 0/4] Git removes existing folder when cancelling clone

2018-01-02 Thread Jeff King
On Tue, Jan 02, 2018 at 03:04:43PM -0500, Jeff King wrote: > So I don't think there's an urgent data-loss bug here; we will only ever > destroy an empty directory. However, the original intent was to leave > the filesystem as we found it on a failed or aborted clone, and we > obviously don't do th

Re: Git removes existing folder when cancelling clone

2018-01-02 Thread Jeff King
On Tue, Jan 02, 2018 at 06:12:35AM -0500, Robert P. J. Day wrote: > > I just noticed the following behaviour on macOS 10.13.2 running Git v2.15.0: > > > > 1. `mkdir new-folder` > > 2. `ls` - shows new-folder > > 3. `git clone [repo] new-folder` > > 4. Git asks for password > > 5. I cancel by press

Re: Git removes existing folder when cancelling clone

2018-01-02 Thread Robert P. J. Day
On Tue, 2 Jan 2018, Stephan Janssen wrote: > Hi, > > I hope this mailing list is the right way to communicate this. > > I just noticed the following behaviour on macOS 10.13.2 running Git v2.15.0: > > 1. `mkdir new-folder` > 2. `ls` - shows new-folder > 3. `git clone [repo] new-folder` > 4. Git as

Git removes existing folder when cancelling clone

2018-01-02 Thread Stephan Janssen
Hi, I hope this mailing list is the right way to communicate this. I just noticed the following behaviour on macOS 10.13.2 running Git v2.15.0: 1. `mkdir new-folder` 2. `ls` - shows new-folder 3. `git clone [repo] new-folder` 4. Git asks for password 5. I cancel by pressing ctrl+c Result: `ls`