pull/4791/head
filip mertens 5 months ago
parent 2dd6e7dec6
commit 30100b39ef
  1. 3
      libs/remix-ui/git/src/lib/gitactions.ts
  2. 10
      libs/remix-ui/home-tab/src/lib/components/homeTabGetStarted.tsx

@ -116,7 +116,6 @@ export const showCurrentBranch = async () => {
try {
const branch = await currentBranch();
dispatch(setCanCommit((branch && branch.name !== "")));
dispatch(setCurrentBranch(branch));
@ -490,7 +489,6 @@ export const remoteBranches = async (owner: string, repo: string) => {
export const remoteCommits = async (url: string, branch: string, length: number) => {
const urlParts = url.split("/");
// check if it's github
if (!urlParts[urlParts.length - 3].includes('github')) {
return
@ -564,7 +562,6 @@ export const loadGitHubUserFromToken = async () => {
emails: userEmails
} = await plugin.call('dgitApi' as any, 'getGitHubUser', { token });
if (data && data.emails && data.user && data.user.login) {
const primaryEmail = data.emails.find(email => email.primary)

@ -74,11 +74,11 @@ function HomeTabGetStarted({ plugin }: HomeTabGetStartedProps) {
if (metadata) {
if (metadata.type === 'git') {
await (plugin as Plugin<any, CustomRemixApi>).call('dgitApi', 'clone',
{
url: metadata.url,
branch: metadata.branch,
workspaceName: templateDisplayName
})
{
url: metadata.url,
branch: metadata.branch,
workspaceName: templateDisplayName
})
} else if (metadata && metadata.type === 'plugin') {
await plugin.appManager.activatePlugin('filePanel')
templateDisplayName = await plugin.call('filePanel', 'getAvailableWorkspaceName', templateDisplayName)

Loading…
Cancel
Save