Skip to content

Use correct reader variable#58

Open
gabrielgio wants to merge 1 commit into
icyphox:masterfrom
gabrielgio:master
Open

Use correct reader variable#58
gabrielgio wants to merge 1 commit into
icyphox:masterfrom
gabrielgio:master

Conversation

@gabrielgio

Copy link
Copy Markdown
Contributor

Gzip reader was not setting a variable but rather creating a new one. That led the "git-upload-pack" to received the compressed date rendering it unable to read the packet lines.

That was a rather annoying bug to figure 😓

Gzip reader was not setting a variable but rather creating a new one.
That led the "git-upload-pack" to received the compressed date rendering
it unable to read the packet lines.
maxwelljens added a commit to maxwelljens/legit that referenced this pull request May 14, 2026
### Added
- Reference links displayed in commit log page (icyphox#54)
- Symlink resolution when scanning for git repositories (icyphox#59)

### Fixed
- Malformed HTML in templates (icyphox#61)
- Correct reader variable used in git operations (icyphox#58)

### Changed
- Default scan path updated to /var/git (icyphox#60)
- Dependency bumps: go-git v5.13.2, golang.org/x/crypto v0.31.0
- Path joining hardened with securejoin across all routes
- Code quality: all golangci-lint issues resolved
pocka added a commit to pocka/legit that referenced this pull request Jul 14, 2026
https://tangled.org/pocka.jp/legit/issues/6
icyphox#58

I could not write a test reliably triggers this condition (upload-pack
request having gzip body) even with system git.
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.

2 participants