Re: regarding fix on "git clone $there $here"
- From
- Leslie Wang <qiwa@pensando.io>
- Date
- May 9, 2018, 16:47 UTC
- Message-ID
- <F55100F9-134B-41DF-8707-AA9F354E68C4@pensando.io>
- In-Reply-To
- <xmqqin7xl446.fsf@gitster-ct.c.googlers.com>
Thanks for the confirmation. It is very helpful!
Best Regards Leslie Wang
Show 17 quoted lines
> On May 8, 2018, at 11:44 PM, Junio C Hamano <gitster@pobox.com> wrote: > > Leslie Wang <qiwa@pensando.io> writes: > >> At 2.14.1 or 2.15.1, if I run command like >> - mkdir /tmp/111 >> - git clone git@github.com:111/111 /tmp/111 >> >> because it will failure, then /tmp/111 will be removed automatically. > > Yes, this was a (longstanding) bug that nobody bothered to fix for a > long time. As "git clone" did not create /tmp/111 but it was given > to it by the external world, it shouldn't remove it upon failure. > Of course, if you omit the "mkdir" in the above sequence and let > "git clone" create /tmp/111, tne Git will remove it upon failure as > part of the clean-up. >