Skip to content

[BUG] Git files (network) not found when run from a non-git folder. #624

Open

Description

@Flamefire

Describe the bug

I tried uploading a coverage file from GitHub Actions and noticed that the path fixup didn't work anymore.
I traced that to this issue: GitVersioningSystem.is_available only returns True if the current directory is a git repository

So even if --network-root-folder was specified and set to a git repository it will not be detected because GitVersioningSystem is not used as it fails if the current folder is not a git repo and hence git rev-parse --show-toplevel fails to early.

To Reproduce
Steps to reproduce the behavior:

  1. Go to an empty folder
  2. run the app with --network-root-folder set correctly
  3. See that "relevant files" is empty and fixups are not done

Activity

  1. added
    bug
    on Feb 14, 2025
  2. thomasrockhu-codecov commented on Feb 14, 2025

    @thomasrockhu-codecov
    Contributor

    @Flamefire nice catch, I'll work on a fix next week

  3. added
    high
    Area: Report Upload
    on Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: Report UploadEng Area: CLI: Generalbugcodecov/codecov-clihigh

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions