I am on ubuntu.
ok first of all I am running a post-commit script. I need the path to svnnotify to run it. The path the turotial I am reading has it as
/usr/local/bin/svnnotify but nothing is in that location on my computer. I tried it anyways and I get something like:
Warning post-commit hook failed: not found
so I think I need to replace
/usr/local/bin/svnnotify with the correct path to svnnotify.
Well I do a search (
Places>Search for Files) for
svnnotify and nothing comes up.
I know svnnotify is installed becuase if I open a command line and run
svnnotify it tells me I am missing the required path argument.
So how can it be installed if its not in the file system anywhere?
I don't really know how linux works, its very new to me, so I am confused.
Is there something I am missing?
I have updated the file to look like:
#!/bin/bash REPOS="$1" REV="$2" /usr/bin/svnnotify --repos-path "$REPOS" --revision "$REV" --subject-cx --with-diff --handler HTML::ColorDiff --to firstname.lastname@example.org --from email@example.com
I made it executable.
I run it like so:
myuser@linux-server:/usr/local/svn/svn_repo/hooks$ post-commit /usr/local/svn/svn_repo 9
I get this as output:
post-commit: command not found