Allow cloning to an existing empty directory
authorAlexander Potashev <aspotashev@gmail.com>
Sun, 11 Jan 2009 12:19:12 +0000 (15:19 +0300)
committerJunio C Hamano <gitster@pobox.com>
Sun, 11 Jan 2009 21:26:29 +0000 (13:26 -0800)
commit55892d23981917aefdb387ad7d0429f90cbd446a
tree72b1aab773fa37b50d07991de8a227994f1d6a7b
parent8ca12c0d62c0be4a4987c4a936467ea2a92e915a
Allow cloning to an existing empty directory

The die() message updated accordingly.

The previous behaviour was to only allow cloning when the destination
directory doesn't exist.

[jc: added trivial tests]

Signed-off-by: Alexander Potashev <aspotashev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-clone.c
dir.c
dir.h
t/t5601-clone.sh