Skip to content

gitattributes.ReadAttributesFile does not close file #1017

@prskr

Description

@prskr

Hi all,

first of all, thank you so much for providing us with this awesome library!

I noticed that gitattributes.ReadAttributesFile(...) does not properly close the file after successfully opening it.
Although that is not an issue on Linux/MacOS it breaks my CI on Windows when trying to clean a temp directory although a .gitattributes file is not closed.

I will provide a PR in a moment to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions