You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add unit tests for subdirectory pre-commit hook path handling
Added four new test cases to verify the fix for pre-commit hook
path handling when Gradle projects are in subdirectories:
1. checkHookUsesRelativeFlagInSubdirectory: Verifies that check
hooks use --relative flag when Gradle is in a subdirectory
2. formatHookUsesRelativeFlagInSubdirectory: Verifies that format
hooks use --relative flag and correctly prefix file paths in
git add commands
3. checkHookDoesNotUseRelativeFlagAtGitRoot: Verifies that check
hooks do not use --relative flag when Gradle is at git root
4. formatHookDoesNotUseRelativeFlagAtGitRoot: Verifies that format
hooks do not use --relative flag or path prefixes when Gradle
is at git root
0 commit comments