Rich-Harris / degit

Straightforward project scaffolding
MIT License
6.93k stars 242 forks source link

Subfolders don't work on bitbucket #371

Open paleite opened 3 months ago

paleite commented 3 months ago

degit is unable to use subfolders on bitbucket, but it works on github. I've tried this with multiple syntaxes, but couldn't get it to work.

To reproduce

Clone a bitbucket repo with a subfolder:

degit https://bitbucket.org/cxcompany/public-examples/src/master/transaction-webhook-azure-functions webhook-example
degit https://bitbucket.org/cxcompany/public-examples/transaction-webhook-azure-functions webhook-example
degit bitbucket:cxcompany/public-examples/transaction-webhook-azure-functions webhook-example

Expected

The folder webhook-example should contain the files, or degit should throw an error if it doesn't exist.

Actual

The output says:

> cloned cxcompany/public-examples#HEAD to webhook-example

The folder webhook-example is created, but it is empty.

Note

On Github, however, degit works as expected:

degit saltyshiomix/nextron/examples/with-tailwindcss nextron-with-tailwind