Skip to content

fix(push): defer branch protection to remote#628

Merged
birdmanmandbir merged 2 commits into
mainfrom
fix/push-defer-protected-branch-policy
Jun 21, 2026
Merged

fix(push): defer branch protection to remote#628
birdmanmandbir merged 2 commits into
mainfrom
fix/push-defer-protected-branch-policy

Conversation

@birdmanmandbir

Copy link
Copy Markdown
Contributor

Summary

  • Remove the daemon-side hardcoded main/master push block.
  • Let ttal push call real git push and rely on the repository host's branch protection policy.
  • Update ttal push --help text so it no longer claims main/master are blocked locally.

Tests

  • go test ./internal/daemon -run 'TestHandleGitPush|TestBuildGitPushArgs|TestHTTPGitPush' -count=1
  • go test ./cmd -run Push -count=1
  • make test
  • make build

Note

  • make ci still fails on existing full-repo lint issues outside this diff (goconst findings in unrelated packages and internal/gitprovider/provider.go:89 unused tailString).

@birdmanmandbir birdmanmandbir merged commit 05d555c into main Jun 21, 2026
6 checks passed
@birdmanmandbir birdmanmandbir deleted the fix/push-defer-protected-branch-policy branch June 21, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant