Merge branch 'jk/abort-clone-with-existing-dest' into maint
authorJunio C Hamano <gitster@pobox.com>
Thu, 15 Feb 2018 23:18:12 +0000 (15:18 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Feb 2018 23:18:13 +0000 (15:18 -0800)
commit1363914a6a4ad013f1cb0189e4ff63a17482bcae
treef75904d171c4e1ea9c3c8fb851b79991db9b9cd5
parentff19620f8127798dcfc1dab7c633eb7505b7abd3
parentd45420c1c8612f085f1901c33ff6f0ccfbb72d3b
Merge branch 'jk/abort-clone-with-existing-dest' into maint

"git clone $there $here" is allowed even when here directory exists
as long as it is an empty directory, but the command incorrectly
removed it upon a failure of the operation.

* jk/abort-clone-with-existing-dest:
  clone: do not clean up directories we didn't create
  clone: factor out dir_exists() helper
  t5600: modernize style
  t5600: fix outdated comment about unborn HEAD
builtin/clone.c