Improve ForcePullDialog language

This commit is contained in:
Alex Gleason committed 2025-12-24 17:15:16 -06:00
1 parent 5c8d9b3aaa
commit fe72549e2d
2 files changed
+18 -13

No files matched your search

+6 -4
View File
@@ -224,10 +224,11 @@ export function SyncStep({ projectId }: StepProps) {
};
}
// Fallback to generic Git
return {
name: url?.hostname || 'Git',
};
if (url && (url.protocol === 'http:' || url.protocol === 'https:')) {
return { name: url.hostname };
}
return { name: 'Git' };
}, [originRemote, matchedCredential]);
const providerInfo = getProviderInfo();
@@ -370,6 +371,7 @@ export function SyncStep({ projectId }: StepProps) {
open={showForcePullDialog}
onOpenChange={setShowForcePullDialog}
onConfirm={handleForcePull}
remoteName={providerInfo?.name}
/>
</div>
);