Opened 7 months ago
Git Hook script to prevent large binary blobs being checked in
|Reported by:||hvr||Owned by:||hvr|
|Component:||Trac & Git||Version:|
|Type of failure:||None/Unknown||Difficulty:||Unknown|
|Test Case:||Blocked By:|
It has already occurred in the past in testsuite.git repo, that executables were checked in by accident, and caused the Git history to get bloated.
In order to avoid such accidents in the future a Git hook script in the style of this might be useful, but taking also into account the size, and/or possibly with a magic safeword to be put in the commit message, to override the check for a single commit, if the author really knows what (s)he's doing.