Fix git fetch handle deteled refs

This commit is contained in:
DanConwayDev authored and Alex Gleason committed 2025-11-13 16:11:39 -06:00
1 parent d8bfa10b43
commit 21e522cba7
2 files changed
+45 -4

No files matched your search

+1 -1
View File
@@ -346,7 +346,7 @@ export function useGitFetch(projectId: string | null) {
if (currentBranchChanged && query.data.currentBranch) {
toast({
title: 'Remote changes detected',
description: `The ${query.data.currentBranch} branch has new commits available.`,
description: `The ${query.data.currentBranch} branch has ${query.data.currentBranchOid === null ? 'been deleted' : 'new commits available'}.`,
variant: 'default',
});