Skip to content

Commit 558f82c

Browse files
sallyomclaude
andcommitted
Fix: Remove hard-coded 'main' branch default to allow blank branch field
Previously, CheckRepoSeeding() always defaulted to 'main' when the branch parameter was nil or empty. This prevented users from leaving the branch field blank to signal that the runner should create a feature branch. Changed branchName initialization from "main" to empty string, allowing the system to properly detect when no branch is specified. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 15e8d4a commit 558f82c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/backend/git/operations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func getSecretKeys(data map[string][]byte) []string {
176176
// CheckRepoSeeding checks if a repo has been seeded by verifying .claude/commands/ and .specify/ exist
177177
// Supports both GitHub and GitLab repositories
178178
func CheckRepoSeeding(ctx context.Context, repoURL string, branch *string, token string) (bool, map[string]interface{}, error) {
179-
branchName := "main"
179+
var branchName string
180180
if branch != nil && strings.TrimSpace(*branch) != "" {
181181
branchName = strings.TrimSpace(*branch)
182182
}

0 commit comments

Comments
 (0)