[PATCH 0/2] git clone with --separate-git-dir destroys existing directory content
- From
Ben Wijen <ben@wijen.net>
- Date
- Jul 1, 2020, 09:36 UTC
- Message-ID
- <20200701093653.3706-1-ben@wijen.net>
Hi,
I found an issue with git clone, when using --separate-git-dir and that directory already exists, it's content is destroyed.
I have created a patch set on origin/next, but (as I have learned this the hard way) please let me know if this needs to be backported...
Ben...
Ben Wijen (2): git clone: check for non-empty directory git clone: don't clone into non-empty directory
builtin/clone.c | 12 ++++++++++-- t/t5601-clone.sh | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-)
-- 2.27.0