fix(clients): default GitHub clones to HTTPS (#7760)

Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
Co-authored-by: maria <[email protected]>
This commit is contained in:
t3-code[bot]andmaria authored and GitHub committed 2026-08-21 04:55:14 -04:00
1 parent 9f12eab383
commit 549201fcfd
4 files changed
+68 -4

No files matched your search

@@ -10,6 +10,8 @@ import {
getCloneDestinationBrowsePath,
getCloneDestinationPath,
getCloneDirectoryName,
getDefaultCloneUrl,
normalizePastedCloneUrl,
resolveAddProjectPath,
sortAddProjectProviderSources,
type AddProjectRemoteSource,
@@ -662,7 +664,7 @@ export function AddProjectRepositoryScreen(props: {
setIsSubmitting(true);
const provider = addProjectRemoteSourceProvider(source);
if (!provider) {
const remoteUrl = repositoryInput.trim();
const remoteUrl = normalizePastedCloneUrl(repositoryInput);
navigation.dispatch(
StackActions.push("AddProjectDestination", {
environmentId: environment.environmentId,
@@ -691,7 +693,7 @@ export function AddProjectRepositoryScreen(props: {
StackActions.push("AddProjectDestination", {
environmentId: environment.environmentId,
source,
remoteUrl: repository.sshUrl,
remoteUrl: getDefaultCloneUrl(repository),
repositoryTitle: repository.nameWithOwner,
repositoryName: getCloneDirectoryName(repository.nameWithOwner),
}),
+4 -2
View File
@@ -6,6 +6,8 @@ import {
getCloneDestinationBrowsePath,
getCloneDestinationPath,
getCloneDirectoryName,
getDefaultCloneUrl,
normalizePastedCloneUrl,
} from "@t3tools/client-runtime/operations/projects";
import { connectionStatusText } from "@t3tools/client-runtime/connection";
import { threadSearchMatchKey } from "@t3tools/client-runtime/state/thread-search";
@@ -1874,7 +1876,7 @@ function OpenCommandPaletteDialog(props: {
source: addProjectCloneFlow.source,
repositoryInput: rawRepository,
repository: null,
remoteUrl: rawRepository,
remoteUrl: normalizePastedCloneUrl(rawRepository),
});
setHighlightedItemValue(null);
setQuery(destinationPath);
@@ -1914,7 +1916,7 @@ function OpenCommandPaletteDialog(props: {
source: addProjectCloneFlow.source,
repositoryInput: rawRepository,
repository,
remoteUrl: repository.sshUrl,
remoteUrl: getDefaultCloneUrl(repository),
});
setHighlightedItemValue(null);
setQuery(destinationPath);