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
Fix an issue where git lfs install was running unnecessarily in repositories
without LFS files, causing hooks to be installed when they shouldn't be.
Changes:
- Update src/git-lfs/install.sh to properly check for empty git lfs ls-files output
- Add comprehensive test (test/git-lfs/noLfsFiles.sh) to verify hooks are not installed
when no LFS files are present
- Update test scenarios to include the new test case
The fix changes the condition from checking command exit status to checking
if the output is empty, preventing unnecessary hook installation in non-LFS repos.
0 commit comments