Compare commits

...

2 Commits

Author SHA1 Message Date
Pablo F.G
97237502fe docs(ui): add changelog entry for pre-commit GIT_WORK_TREE fix
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 12:48:39 +02:00
Pablo F.G
892d41360c fix(ui): unset GIT_WORK_TREE in pre-commit hook to fix path resolution
When Python pre-commit framework runs hooks, it sets GIT_WORK_TREE to
the subdirectory, causing git rev-parse --show-toplevel to return the
wrong path. This broke .env loading, staged file detection, and the
cd to ui/ directory. Unsetting GIT_WORK_TREE restores correct behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 11:32:40 +02:00
2 changed files with 4 additions and 0 deletions

View File

@@ -6,6 +6,9 @@
set -e
# Ensure git resolves the real repo root, not a pre-commit framework override
unset GIT_WORK_TREE
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'

View File

@@ -20,6 +20,7 @@ All notable changes to the **Prowler UI** are documented in this file.
- Deleting the active organization now switches to the target org before deleting, preventing JWT rejection from the backend [(#10491)](https://github.com/prowler-cloud/prowler/pull/10491)
- Clear Filters now resets all filters including muted findings and auto-applies, Clear all in pills only removes pill-visible sub-filters, and the discard icon is now an Undo text button [(#10446)](https://github.com/prowler-cloud/prowler/pull/10446)
- Send to Jira modal now dynamically fetches and displays available issue types per project instead of hardcoding `"Task"`, fixing failures on non-English Jira instances [(#10534)](https://github.com/prowler-cloud/prowler/pull/10534)
- Pre-commit hook now unsets `GIT_WORK_TREE` to fix path resolution when the variable is inherited from parent processes [(#10574)](https://github.com/prowler-cloud/prowler/pull/10574)
---