Skip to content

Commit 6f6bf47

Browse files
author
PR Batch Tester
committed
fix(mobile): recognize clone destinations without a repository name
1 parent d10dd51 commit 6f6bf47

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/mobile/src/features/projects/AddProjectScreen.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,7 @@ function FolderBrowser(props: {
854854
readonly selectedDirectoryName?: string;
855855
}) => Promise<boolean>;
856856
readonly pinnedDirectoryName?: string;
857+
readonly cloning?: boolean;
857858
}) {
858859
const browsePath = getFilesystemBrowsePath(props.pathInput, props.environment.platform);
859860
const browseInput =
@@ -894,7 +895,7 @@ function FolderBrowser(props: {
894895
<ErrorBanner message={fileAccess.error ?? "This connection cannot browse host folders."} />
895896
) : null}
896897
{browseState.error === null ? null : isMissingCloneParentBrowseFailure({
897-
cloning: pinnedDirectoryName.length > 0,
898+
cloning: props.cloning === true,
898899
failure: browseState.failure,
899900
}) ? (
900901
<Text className="text-sm text-foreground-muted">
@@ -1447,6 +1448,7 @@ export function AddProjectDestinationScreen(props: {
14471448
pathInput={pathInput}
14481449
setPathInput={setPathInput}
14491450
pinnedDirectoryName={repositoryName}
1451+
cloning={Boolean(remoteUrl)}
14501452
/>
14511453
</>
14521454
) : (

0 commit comments

Comments
 (0)