{"record":{"id":"8d6fc0a82ecbe84d","repo":"usebruno/bruno","slug":"a-git-remote-url-is-required","errorCode":null,"errorMessage":"A Git remote URL is required","messagePattern":"A Git remote URL is required","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-electron/src/ipc/workspace.js","lineNumber":601,"sourceCode":"      mainWindow.webContents.send('main:workspace-config-updated', workspacePath, correctWorkspaceUid, configForClient);\n\n      return true;\n    } catch (error) {\n      throw error;\n    }\n  });\n\n  const broadcastWorkspaceConfig = (workspacePath, config) => {\n    const workspaceUid = getWorkspaceUid(workspacePath);\n    const isDefault = workspaceUid === 'default';\n    const configForClient = prepareWorkspaceConfigForClient(config, workspacePath, isDefault);\n    mainWindow.webContents.send('main:workspace-config-updated', workspacePath, workspaceUid, configForClient);\n  };\n\n  ipcMain.handle('renderer:connect-collection-to-git', async (event, workspacePath, collectionPath, remoteUrl) => {\n    try {\n      if (typeof remoteUrl !== 'string' || remoteUrl.trim() === '') {\n        throw new Error('A Git remote URL is required');\n      }\n\n      const trimmedUrl = remoteUrl.trim();\n      if (!/^(https?:\\/\\/|git@|ssh:\\/\\/|git:\\/\\/).+/.test(trimmedUrl)) {\n        throw new Error('Invalid Git remote URL');\n      }\n\n      const updatedConfig = await setCollectionGitRemote(workspacePath, collectionPath, trimmedUrl);\n      broadcastWorkspaceConfig(workspacePath, updatedConfig);\n      return true;\n    } catch (error) {\n      throw error;\n    }\n  });\n\n  ipcMain.handle('renderer:disconnect-collection-from-git', async (event, workspacePath, collectionPath) => {\n    try {\n      const updatedConfig = await clearCollectionGitRemote(workspacePath, collectionPath);","sourceCodeStart":583,"sourceCodeEnd":619,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-electron/src/ipc/workspace.js#L583-L619","documentation":"Error \"A Git remote URL is required\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-electron/src/ipc/workspace.js:601 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enter a Git remote URL for the workspace before syncing."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}