Skip to content

refactor(main): remove git protocol support#4

Merged
Xe merged 1 commit into
mainfrom
Xe/rip-out-git-protocol
Jun 25, 2026
Merged

refactor(main): remove git protocol support#4
Xe merged 1 commit into
mainfrom
Xe/rip-out-git-protocol

Conversation

@Xe

@Xe Xe commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Removes the unauthenticated git:// (plaintext) protocol support from the production daemon. The plaintext git protocol is insecure and not expected to be needed in production.

The git protocol handling is still exercised by the test suite, so it has been moved into the _test.go files rather than deleted outright.

Changes

  • Removed git:// protocol wiring from cmd/objgitd/main.go
  • Moved the git protocol server logic from git_protocol.go into git_protocol_test.go for continued test coverage
  • Updated example_hook_test.go and hooks_test.go accordingly

Test plan

  • go build ./...
  • go test ./...

As this is still used by the test logic, I've moved it to the _test.go
files. I don't expect to need this in production as the plaintext git
protocol is rather insecure.

Signed-off-by: Xe Iaso <xe@tigrisdata.com>
@Xe Xe merged commit 18c59c7 into main Jun 25, 2026
6 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant