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 asks for password > 5. I cancel by pressing ctrl+c > > Result: > `ls` no longer shows new-folder. > > Expected result: > `ls` shows new-folder > > I’m not sure whether this might be a case of ‘works as intended’, > but it’s not what I’d expect. i'm *pretty* sure that the optional directory name you supply is meant to represent a directory you want git to *create* for you, not one that already exists. that means the behaviour you see makes sense -- if git assumes it was supposed to create the directory, and you cancel the clone, it reasonably assumes it should get rid of it. i am willing to be corrected. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================