svn commit: r397525 - svnadmin/hooks/scripts

Bryan Drewery bdrewery at FreeBSD.org
Mon Sep 21 22:18:14 UTC 2015


Author: bdrewery
Date: Mon Sep 21 22:18:13 2015
New Revision: 397525
URL: https://svnweb.freebsd.org/changeset/ports/397525

Log:
  Prevent checking in user file Makefile.local.
  
  With hat:	portmgr

Modified:
  svnadmin/hooks/scripts/deny-filenames.sh

Modified: svnadmin/hooks/scripts/deny-filenames.sh
==============================================================================
--- svnadmin/hooks/scripts/deny-filenames.sh	Mon Sep 21 22:12:13 2015	(r397524)
+++ svnadmin/hooks/scripts/deny-filenames.sh	Mon Sep 21 22:18:13 2015	(r397525)
@@ -32,6 +32,12 @@ do 
     echo "double-check your commit and try committing again." >&2
     exit 1
   fi 
+
+  if [ -z "${file%%*/Makefile.local}" ]
+  then
+    echo "Makefile.local is a user file and may not be committed." >&2
+    exit 1
+  fi
 done
 
 # No forbidden files detected, let it fly!


More information about the svn-ports-all mailing list