Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Fixed GitLab CI project directory detection on Windows. #216

Merged
merged 1 commit into from May 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion codecov/__init__.py
Expand Up @@ -744,7 +744,7 @@ def main(*argv, **kwargs):
commit=os.getenv("CI_BUILD_REF"),
)
)
if os.getenv("CI_PROJECT_DIR", "").startswith("/"):
if sys.platform == "win32" or os.getenv("CI_PROJECT_DIR", "").startswith("/"):
root = os.getenv("CI_PROJECT_DIR")
else:
root = os.getenv("HOME") + "/" + os.getenv("CI_PROJECT_DIR", "")
Expand Down