Skip to content

Conversation

@hansbogert
Copy link
Contributor

See #151

Otherwise f.Duplicate() copies the modTime. Subsequent modtime mutations are
then on this copy instead of the original file's modtime. Effectively any
mutation to a modtime can never be seen by other callers of f.Stat()
Copy link
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hansbogert thanks for getting this fixed. 🙇

@pjbgf pjbgf merged commit 9a6bbea into go-git:main Oct 13, 2025
11 checks passed
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