Rex
Rex copied to clipboard
Rex::SCM::Git can't clone into existing empty directory
Describe the bug
Git has been capable of cloning into an existing, empty directory since commit https://github.com/git/git/commit/55892d23981917aefdb387ad7d0429f90cbd446a.
Currently Rex will attempt to clone, see that the directory exists and fall through to this statement: https://github.com/RexOps/Rex/blob/master/lib/Rex/SCM/Git.pm#L146
Expected behavior
Rex should be able to clone a git repository into an existing directory.
How to reproduce it
Clone a repo into an existing directory
Code example
No response
Additional context
No response
Rex version
1.13.4
Perl version
v5.34.1
Operating system running rex
NixOS, OpenBSD
Operating system managed by rex
OpenBSD
How rex was installed?
package manager