Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Failure in case a file added to git does not exist #275

Open
Martoon-00 opened this issue Jan 31, 2023 · 0 comments
Open

[BUG] Failure in case a file added to git does not exist #275

Martoon-00 opened this issue Jan 31, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Martoon-00
Copy link
Member

Description

We rely on git ls-files to get the list of files to check, but some of the files could be removed after being added to git, this should be handled.

To Reproduce

  1. touch doc.md
  2. git add doc.md
  3. rm doc.md
  4. xrefcheck

This results in xrefcheck run failing.

Expected behavior

All tracked md files except for doc.md are checked.

I suppose we should treat doc.md as if it never existed, but it's discussible.

Environment

@Martoon-00 Martoon-00 added this to the 0.3.0 milestone Jan 31, 2023
@Martoon-00 Martoon-00 added the bug Something isn't working label Jan 31, 2023
@Martoon-00 Martoon-00 removed this from the 0.3.0 milestone Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant