• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

binbashar / leverage
78%
master: 80%

Build:
Build:
LAST BUILD BRANCH: enhancement/tf-error-path-tests
DEFAULT BRANCH: master
Repo Added 10 Feb 2024 10:08PM UTC
Files 44
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fix/get-root-path-git-errors
branch: fix/get-root-path-git-errors
CHANGE BRANCH
x
Reset
  • fix/get-root-path-git-errors
  • 157-dependencies
  • 159-fix-apply-issue
  • 195-local-user
  • 229-fix-issue-with-version
  • 248-improve-coverage
  • 259-preflight-checks
  • 599-kubeconfig-helper
  • BB-276-symlinks
  • BL-294-friendly-parsing-errors
  • FEATURE/custom-user-in-toolbox
  • Fix/versions-bump
  • add-python-3.12-to-testing-workflows
  • apply-bug-159
  • bug-301-fix-parsing-error-in-locals.tf-file
  • bug/no-role-found-error
  • bzbyrm-codex/review-issue-#21-and-propose-solution
  • chore/actions-node24-release-drafter-v7
  • chore/add-support-for-python-3.13
  • chore/deprecate-python-3.8
  • chore/drop-f541-ignore
  • chore/release-notes-dependencies
  • chore/support-python-3.12
  • chore/update-hcl-parser-support-3.13
  • chore/upgrade-python-hcl-library
  • coderabbitai/docstrings/3086db4
  • codex/review-issue-#21-and-propose-solution
  • debugging
  • dependabot/github_actions/actions-6080605e8c
  • dependabot/github_actions/actions-aa6dd3212d
  • dependabot/pip/configupdater-4.1.1
  • dependabot/pip/dev-06c9e57aeb
  • dependabot/pip/jinja2-3.1.6
  • dependabot/pip/mypy-2.4.1
  • dependabot/pip/pre-commit-4.7.0
  • dependabot/pip/pytest-cov-7.1.0
  • dependabot/pip/questionary-2.1.1
  • dependabot/pip/requests-2.33.0
  • dependabot/pip/rich-15.0.0
  • dependabot/pip/runtime-4f3736db8f
  • dependabot/pip/types-python-dateutil-2.9.0.20261104
  • docs/session-updates
  • dummy
  • enchancement/update-release-drafter-version-msg.yml
  • enhancement/tf-error-path-tests
  • feat/add-opentofu-command
  • feat/drop-remaining-references-to-containers-and-docker
  • feat/gate-pypi-release-on-tests
  • feat/modernize-refarch-integration-test
  • feat/project-create-validations
  • feature/auth-stubber-tests
  • feature/aws-sso-cli-tests
  • feature/ci-macos-tf-matrix
  • feature/drop-python-3.9-3.10
  • feature/hermetic-tofu-bats
  • feature/mypy
  • feature/python-3.14
  • feature/ruff-lint
  • feature/support-python-3.12
  • feature/test-hygiene
  • fix-sed-macos
  • fix/aws-configure-passthrough
  • fix/ci-ubuntu-26-04
  • fix/confusing-error-message
  • fix/dependency-alerts
  • fix/exit-error-click-types
  • fix/integration-tests
  • fix/issue-317-multiple-regressions
  • fix/issue-350-sso-logout-project-long
  • fix/propagate-tf-exit-code
  • fix/release-drafter-pr-drafts
  • fix/release-drafter-version-labels
  • fix/restore-unit-test-suite
  • fix/workflow-permissions
  • improve-test-release
  • increase-account-dir-search-depth
  • increase-compatibiliy-with-podman
  • kungfoo/path-fix
  • lv-267
  • master
  • new-sso-url
  • prop/move-list-tasks-to-run
  • requests-2.31
  • temp/accept-looped-providers
  • test
  • v1.12.2
  • v1.12.3
  • v1.12.4
  • v1.13.0
  • v1.14.0
  • v1.15.0
  • v2.1.0
  • v2.1.1
  • v3.2.0
  • version-warning

15 Nov 2026 02:07PM UTC coverage: 78.034% (+0.8%) from 77.28%
43722610415

Pull #359

github

diego-ojeda-binbash
Fix | Report git errors instead of crashing; clear error outside a project

- get_root_path runs git with LC_ALL=C, so "not a git repository" is
  recognized in any locale (#229), and turns any other git error (e.g.
  dubious ownership) into an ExitError with git's message instead of
  returning None, which made every command crash with a TypeError
- The import-time fallbacks catch that ExitError instead of TypeError
  (the workaround from #256); the command reports it when it loads the
  configuration
- State.paths raises "Out of Leverage project context" when no project
  was found, so tofu/terraform/kubectl/tfautomv fail with that message
  instead of an AttributeError. Commands that work anywhere (--version,
  --help, run) are unaffected

Closes #356

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #359: Fix | Report git errors instead of crashing, clear error outside a project

724 of 1080 branches covered (67.04%)

Branch coverage included in aggregate %.

21 of 22 new or added lines in 3 files covered. (95.45%)

71 existing lines in 4 files now uncovered.

3340 of 4128 relevant lines covered (80.91%)

0.81 hits per line

Relevant lines Covered
Build:
Build:
4128 RELEVANT LINES 3340 COVERED LINES
0.81 HITS PER LINE
Source Files on fix/get-root-path-git-errors
  • Tree
  • List 44
  • Changed 12
  • Source Changed 4
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
43722610415 fix/get-root-path-git-errors Fix | Report git errors instead of crashing; clear error outside a project - get_root_path runs git with LC_ALL=C, so "not a git repository" is recognized in any locale (#229), and turns any other git error (e.g. dubious ownership) into an Ex... Pull #359 15 Nov 2026 02:08PM UTC diego-ojeda-binbash github
78.03
See All Builds (416)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc