Your /usr/local/bin/trac-svn-hook file should be executed using /bin/sh rather than /usr/bin/python.
On Thu, Apr 11, 2024 at 5:52 PM Jesus Megia <[email protected]> wrote: > > Hello, > > I have tried a lot of thinks to make post-commit work, but it doesn't work at > all. In my server I downloaded trac-svn-hook and in my post-commit hook I > have: > > SVNLOOK=/usr/bin/svnlook > > REPOS="$1" > REV="$2" > #LOG=`$SVNLOOK log -r "$REV" "$REPOS"` > #AUTHOR=`$SVNLOOK author -r "$REV" "$REPOS"` > #DIRS="`$SVNLOOK dirs-changed -r "$REV" "$REPOS"`" > TRAC_ENV="/Datos/srv/trac/Test/" > > /usr/bin/python /usr/local/bin/trac-svn-hook "$REPOS" "$REV" > > > > The problem is that when I make a commit I receive following message > Enviando kk.txt > Transmitiendo contenido de archivos .done > Committing transaction... > Commit de la revisión 21. > > Aviso: post-commit hook failed (exit code 1) with output: > File "/usr/local/bin/trac-svn-hook", line 181 > export TRAC_ENV > ^^^^^^^^ > SyntaxError: invalid syntax > > Any idea about what am I doing wrong? > > thanks in advance. > > Best regards, > > Jesús. > > -- > You received this message because you are subscribed to the Google Groups > "Trac Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/trac-users/5d45a9c7-93e9-4f13-a757-7cb05c87c5cdn%40googlegroups.com. -- Jun Omae <[email protected]> (大前 潤) -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CAEVLMajD4y_1p3PMHhVof_cqfj056O1_Kko6w9tbWsbcpRfD2w%40mail.gmail.com.
