Opened 7 months ago

#8597 new task

Git Hook script to prevent large binary blobs being checked in

Reported by: hvr Owned by: hvr
Priority: normal Milestone:
Component: Trac & Git Version:
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:


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.

Change History (0)

Note: See TracTickets for help on using tickets.