-
-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check-added-large-files doesn't work with --all-files #560
Comments
there's no change in the logic between
|
errr this is the command:
|
This is normal because I don't have any change. I want to be able to execute this hook in CI. Thus executing without any pending change with option |
ah, is there a better argument for |
I will try to make PR @jeremy-coulon but tell me what is desired. If there is no pendin change but file was not commited correctly to LFS but was in repo yup? |
Yes that's the kind of problem that I want to spot in the CI. |
Btw. Jeremy, as the git-lfs is supposed to be low level feature (it is not automagically pruned, needs to filter files and so on) maybe filtering pulled changes and seeing if files except lfs files are ok with this hook? What is the workflow on Developers' localhost? |
This comment has been minimized.
This comment has been minimized.
@nabobalis for non-lfs, check the README -- this issue is specific to lfs so commenting about non-lfs is off topic |
check-added-large-files hook doesn't correctly detect files in LFS when running with option
--all-files
Using
git cat-file -s :$file
would be a better implementation in order to get size of a blob.For example:
The text was updated successfully, but these errors were encountered: