VisualSVN Server Manager bypasses execution of Subversion hooks

Applies to: VisualSVN Server 2.5 and later

VisualSVN Server Manager is an administration tool and accesses repositories directly. All actions to repostories are performed on the behalf of the administrator who connects using VisualSVN Server Manager. In other words, VisualSVN Server impersonates the administrator and all operations are perfromed as if administrator accessed repositories directly on the file system.

This leads to the situation when Subversion hooks would be executed under administrative permissions. However, it could be unexpected that server-side code is executed under administrative permissions. In order to prevent such unexpected behavior, VisualSVN Server Manager bypasses execution of Subversion hooks.

Solution

If you have a requirement that Subversion hooks must be always executed without any exceptions, use your favorite Subversion client (e.g. TortoiseSVN or command-line Subversion client) to manage repository folders.

For example, you may create repository folders using the svn mkdir command with the following steps:

  1. Start VisualSVN Server Manager.
  2. Start command line interpreter using the Action | All Tasks | Start Command Prompt menu command.
  3. Execute the following command line:
    svn mkdir -m "Created new folder" https://svn.contoso.com/svn/repository/folder

See also

Implementing Repository Hooks

Last Modified: