microsoft / devcenter-catalog

MIT License
26 stars 78 forks source link

Delete dangling target directory ahead of running git clone #98

Closed DavidObando closed 3 months ago

DavidObando commented 3 months ago

When a previous git clone operation has failed, the target directory will exist in the machine but remain empty. When attempting to clone again, the existing directory will signal git.exe to fail. In order to not run into this situation, we'll try to ensure that the target directory doesn't exist ahead of running git clone operations.