You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(create-turbo): support renamed repositories (#8993)
### Description
This bug broke create-turbo when we renamed the repo. This bug is
explained in the comments but the tl;dr is that downloading the repo
works because the download URL automatically redirects from the old name
to the new name. However the download is always put into a directory of
the name {repoName}-{branch} where the repoName is the name of the repo
at the time and NOT always the name used to download it.
// Determine the unpacked root path dynamically instead of hardcoding to the fetched repo's name. This avoids the condition when the repository has been renamed, and the
123
+
// old repository name is used to fetch the example. The tar download will work as it is redirected automatically, but the root directory of the extracted
124
+
// example will be the new, renamed name instead of the name used to fetch the example.
// Determine the unpacked root path dynamically instead of hardcoding. This avoids the condition when the repository has been renamed, and the
149
+
// old repository name is used to fetch the example. The tar download will work as it is redirected automatically, but the root directory of the extracted
150
+
// example will be the new, renamed name instead of the name used to fetch the example.
0 commit comments