[GHC] #8597: Git Hook script to prevent large binary blobs being checked in

GHC ghc-devs at haskell.org
Fri Dec 6 10:19:46 UTC 2013


#8597: Git Hook script to prevent large binary blobs being checked in
------------------------------------+-------------------------------------
       Reporter:  hvr               |             Owner:  hvr
           Type:  task              |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Trac & Git        |           Version:
       Keywords:                    |  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 [http://stackoverflow.com/questions/20226132/is-there-a-git-hook-
 which-can-prevent-binary-check-ins 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.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8597>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list