degit icon indicating copy to clipboard operation
degit copied to clipboard

[Bug] Can't degit into an empty directory when omiting folder name

Open YogliB opened this issue 6 years ago • 5 comments

I'm trying to clone a repo into the current directory I'm on, and I keep getting an error, event when the directory is empty.

This is the error I'm getting:

! destination directory is not empty, aborting. Use --force to override

@Rich-Harris I'm not mistaken, it's a bug, right?

YogliB avatar Dec 05 '19 22:12 YogliB

image

same too. weird.

shuiRong avatar Jan 13 '20 08:01 shuiRong

same here

tomByrer avatar Mar 23 '20 19:03 tomByrer

what version are you on? v2.8.0 worked here

bernardoadc avatar Mar 25 '20 23:03 bernardoadc

image

same too. weird.

I receive the notification from Github and just test it with degit sveltejs/template my-app, nothing is wrong. I forgot to check the degit version. (It's late, because I reinstall degit just now.)

shuiRong avatar Mar 26 '20 05:03 shuiRong

I am having the same issue trying to use the clone('./') It does not like this

saltnpixels avatar Jul 15 '20 20:07 saltnpixels