Skip to content

Conversation

ekohl
Copy link
Contributor

@ekohl ekohl commented Nov 11, 2021

WHen running tests I noticed this:

fatal: ls-files -i must be used with either -o or -c

However, rake proceeded so it wasn't failing.

This isn't a complete PR, but I wanted to at least make this obvious and so I wouldn't forget.

@bastelfreak
Copy link
Collaborator

For me this also always fails with fatal: ls-files -i must be used with either -o or -c and an exitcode of 128. I think the command should be git ls-files --ignored --exclude-standard --cached

@ekohl ekohl force-pushed the fail-if-git-ls-files-failed branch from b7f7cc5 to 61ce17b Compare September 13, 2022 15:11
@ekohl ekohl changed the title Fail if git ls-files failed Fix check:git_ignore rake task for git >= 2.32.0 Sep 13, 2022
@ekohl ekohl marked this pull request as ready for review September 13, 2022 15:12
@ekohl ekohl requested review from a team as code owners September 13, 2022 15:12
@ekohl
Copy link
Contributor Author

ekohl commented Sep 13, 2022

I included #351 now.

@ekohl ekohl force-pushed the fail-if-git-ls-files-failed branch from 61ce17b to 9539a84 Compare September 13, 2022 15:29
@chelnak
Copy link
Contributor

chelnak commented Oct 24, 2022

Looking like this will go in rather than #351.

Again, will need rebasing as the changes come in.

@chelnak chelnak added the bug label Oct 24, 2022
@chelnak
Copy link
Contributor

chelnak commented Oct 24, 2022

On a second look, this can actually go in now if you are happy @ekohl ?

marc1n and others added 2 commits October 24, 2022 12:57
Since git 2.32.0, the task check:git_ignore failed with an error message: "fatal: ls-files -i must be used with either -o or -c". Fixed by adding `--cached` option to `git ls-files`.
@ekohl ekohl force-pushed the fail-if-git-ls-files-failed branch from 9539a84 to 30595b7 Compare October 24, 2022 10:57
@ekohl
Copy link
Contributor Author

ekohl commented Oct 24, 2022

I did a trivial rebase and would be happy if this was merged & released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants