stackbit/create-stackbit-app

Fallback to cloning/downloading entire repo for examples

seancdavis opened this issue · 2 comments

This is the safe choice when the user doesn't have an upgraded version of Git.

Ensure we're providing proper feedback.

@eladroz Was chatting with @davbree who suggested a fallback to cloning the entire repo when a dev doesn't have the necessary Git version. You mentioned an alternative approach about downloading a zip rather than cloning. Can you share more about your suggested approach here?

I'm suggesting to use the zip file that GitHub provides for any branch in a repo, e.g.
https://github.com/stackbit-themes/stackbit-examples/archive/refs/heads/main.zip
This is much faster to download anyway, and doesn't come with any git history.