Post-Commit Hook fails upon Access Forbidden

18 views
Skip to first unread message

Duncan Portelli

unread,
Oct 28, 2017, 4:13:20 AM10/28/17
to TortoiseSVN
Hi,

I am on the latest version of Tortoise SVN (1.9.7.27907) and I added a client-side post-commit hook. The hook is getting triggered whenever I have a successful commit. However, when I get an Access Forbidden error, the hook isn't triggered.

I don't know if this is a bug or not, but if not, is there any way to capture an Access Forbidden message in a hook please?

Best Regards,
Duncan Portelli

Stefan

unread,
Oct 28, 2017, 4:31:51 AM10/28/17
to TortoiseSVN


On Saturday, October 28, 2017 at 10:13:20 AM UTC+2, Duncan Portelli wrote:
Hi,

I am on the latest version of Tortoise SVN (1.9.7.27907) and I added a client-side post-commit hook. The hook is getting triggered whenever I have a successful commit. However, when I get an Access Forbidden error, the hook isn't triggered.


Since it's a post-commit hook, it only gets triggered if the commit is actually done.
If the commit fails, there is no commit, and therefore no 'post-commit'.
 
I don't know if this is a bug or not, but if not, is there any way to capture an Access Forbidden message in a hook please?


What do you want to do in your hook?

Stefan

Duncan Portelli

unread,
Oct 28, 2017, 4:41:42 AM10/28/17
to TortoiseSVN
Hi,

Thanks for your prompt reply.


On Saturday, 28 October 2017 10:31:51 UTC+2, Stefan wrote:


On Saturday, October 28, 2017 at 10:13:20 AM UTC+2, Duncan Portelli wrote:
Hi,

I am on the latest version of Tortoise SVN (1.9.7.27907) and I added a client-side post-commit hook. The hook is getting triggered whenever I have a successful commit. However, when I get an Access Forbidden error, the hook isn't triggered.


Since it's a post-commit hook, it only gets triggered if the commit is actually done.
If the commit fails, there is no commit, and therefore no 'post-commit'.

On the Tortoise SVN User Guide, there is listed that a Post-Commit gets "called after the commit finishes (whether successful or not)".
 
 
I don't know if this is a bug or not, but if not, is there any way to capture an Access Forbidden message in a hook please?


What do you want to do in your hook?

I want to clear the authentication data if I get an Access Forbidden message. 

Stefan

Reply all
Reply to author
Forward
0 new messages