Skip to content

Fails to sync added files with ignored paths #18

@chrisdothtml

Description

@chrisdothtml

If a PR is landed that adds new files that have ignored paths (e.g. if someone force-added foo/fixtures/node_modules/bar), the added files will silently not be synced.

As far as I can tell there's no way to temporarily disable the usage of .gitignore for a single git command, and there's no way with git apply to force ignored filepaths to be created

Possible solution

One possible fix could be to find all the added files from each diff, use git check-ignore to determine whether their path is ignored, and force git add them individually

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions