Opened 6 years ago

Last modified 22 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 Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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 (1)

comment:1 in reply to:  description Changed 22 months ago by sjakobi

In my experience arc diff reliably warns about binary files. Is this good enough or is there more to do?

Note: See TracTickets for help on using tickets.