Skip to content

Commit d60500d

Browse files
sallyomclaude
andcommitted
fix: remove frontend auto-fill of 'main' branch in git operations
The frontend hook was defaulting to 'main' when the branch field was empty, preventing users from leaving it blank. This complements the backend fix in commit 558f82c by ensuring the frontend also passes empty branch values through to the backend. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 558f82c commit d60500d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/frontend/src/app/projects/[name]/sessions/[sessionName]/hooks/use-git-operations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function useGitOperations({
3737
sessionName,
3838
path: directoryPath,
3939
remoteUrl: remoteUrl.trim(),
40-
branch: branch.trim() || "main",
40+
branch: branch.trim(),
4141
});
4242

4343
successToast("Remote configured successfully");

0 commit comments

Comments
 (0)