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

Defend against .gitattributes-induced working tree modifications #553

@sdboyer

Description

@sdboyer

I've had this one stewing on my backburner for a while, as it's an edge case with the potential to be deep rabbit hole full of sad.

In Masterminds/glide#635 (comment), some glide users noticed an issue where cloning/checking out a repository containing .gitattributes files could result in a dirty working copy. glide blew up in some ugly ways. The issue hasn't been raised in dep-land yet, but we should get out ahead of this case if we can. Our code definitely assumes right now that the working copy of [git] repositories in the source cache is always clean.

I'd strongly prefer we find some reasonable approximation of correctness that's not unduly punitive towards the use of .gitattributes files, but keeps us from having to dive down the rabbit hole. To get a sense of what that might look like, though, we probably need a bit of research on exactly what circumstances (combinations of .gitattrifbutes and platform) can result in insta-dirty working copies.

I'm hoping somebody wants to do the research here, as this is outside my bandwidth to tackle right now 😄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions