Merge branch 'jk/abort-clone-with-existing-dest'
authorJunio C Hamano <gitster@pobox.com>
Tue, 23 Jan 2018 21:16:37 +0000 (13:16 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Jan 2018 21:16:37 +0000 (13:16 -0800)
commitaddd37cd64e109eb0224e522869962519224cc78
tree2a8a278ba8efe56d85490888935aa857ae704ab8
parent14b9d9aa0d2fc6fd81d7a392fc1cc951a9d9d115
parentd45420c1c8612f085f1901c33ff6f0ccfbb72d3b
Merge branch 'jk/abort-clone-with-existing-dest'

"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