Skip to content
This repository was archived by the owner on Sep 14, 2025. It is now read-only.

Fix calling HEAD on an empty object#501

Merged
kherock merged 1 commit into
masterfrom
fix-head-empty-object
Aug 5, 2019
Merged

Fix calling HEAD on an empty object#501
kherock merged 1 commit into
masterfrom
fix-head-empty-object

Conversation

@kherock

@kherock kherock commented Aug 5, 2019

Copy link
Copy Markdown
Collaborator

Closes #484. This was a very subtle bug, caused by the fact that the last byte of an empty object "begins" at offset -1. This can be worked around by just ensuring the last byte is nonnegative.

@kherock kherock merged commit 1cda37d into master Aug 5, 2019
@kherock kherock deleted the fix-head-empty-object branch August 5, 2019 04:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calling HEAD on an empty file will return an error

1 participant