commit-msg 783 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. #=============================================================================
  3. # CMake - Cross Platform Makefile Generator
  4. # Copyright 2000-2011 Kitware, Inc., Insight Software Consortium
  5. #
  6. # Distributed under the OSI-approved BSD License (the "License");
  7. # see accompanying file Copyright.txt for details.
  8. #
  9. # This software is distributed WITHOUT ANY WARRANTY; without even the
  10. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. # See the License for more information.
  12. #=============================================================================
  13. die() {
  14. echo 'commit-msg hook failure' 1>&2
  15. echo '-----------------------' 1>&2
  16. echo '' 1>&2
  17. echo "$@" 1>&2
  18. exit 1
  19. }
  20. # This is a placeholder for future commit-msg checks.
  21. exit 0