You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by cm...@apache.org on 2012/08/21 19:50:58 UTC

svn commit: r1375697 - /subversion/trunk/subversion/libsvn_repos/repos.c

Author: cmpilato
Date: Tue Aug 21 17:50:57 2012
New Revision: 1375697

URL: http://svn.apache.org/viewvc?rev=1375697&view=rev
Log:
Followup to r1375675, fixing (?) broken template example.

* subversion/libsvn_repos/repos.c
  (create_hooks): Fix (in a not-so-elegant way) the broken init-commit
    template example code.
  

Modified:
    subversion/trunk/subversion/libsvn_repos/repos.c

Modified: subversion/trunk/subversion/libsvn_repos/repos.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/repos.c?rev=1375697&r1=1375696&r2=1375697&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/repos.c (original)
+++ subversion/trunk/subversion/libsvn_repos/repos.c Tue Aug 21 17:50:57 2012
@@ -453,8 +453,10 @@ PREWRITTEN_HOOKS_TEXT
 ""                                                                           NL
 "# If a log message is present, make sure it mentions an issue tracker id."  NL
 "SVNLOOK=" SVN_BINDIR "/svnlook"                                             NL
-"$SVNLOOK log -t \"$TXN\" \"$REPOS\" | \\"                                   NL
-"   grep \"[a-zA-Z0-9]\" > /dev/null || exit 1"                              NL
+"if $SVNLOOK log -t \"$TXN\" \"$REPOS\" | \\"                                NL
+"   grep \"[a-zA-Z0-9]\" > /dev/null; then \\"                               NL
+"       $SVNLOOK log -t \"$TXN\" \"$REPOS\" | \\"                            NL
+"           grep -E \"issue [0-9]+\" > /dev/null || exit 1; fi"              NL
 ""                                                                           NL
 "# All checks passed, so allow the commit to proceed."                       NL
 "exit 0"                                                                     NL;