REPOROOT translation in commit hook does not yeild correct result

31 views
Skip to first unread message

Jens Frøkjær

unread,
Oct 9, 2020, 12:41:25 PM10/9/20
to TortoiseSVN
Hi,

I have a client side pre-commit-hook.

I have made a really simple example of just two files. In my repository I have the following files.
branches\feature\test\test\test\New Text Document.txt
hooks\client\test\test\run.js

On the repository root I have the following property:


When making changes in the txt-file and committing on root level, everything works as expected, the script is executed, and the commit is completed.

When comitting on the txt-file or a low folder level (as in right clicking on the txt-file):

I get the following error:


As can be seen the path is all weird and mixed, the path is first the branch followed by the path to the hook-script.

This worked in 1.12.2, and stopped working when I upgraded to 1.14.0. I honestly havent tested nightly, as the build failes for x64, and I dont have access to a 32 bit machine.

Any help is greatly appreciated.

-- 
Jens

Stefan

unread,
Oct 9, 2020, 12:52:54 PM10/9/20
to TortoiseSVN
On Friday, October 9, 2020 at 6:41:25 PM UTC+2 Jens Frøkjær wrote:
Hi,

I have a client side pre-commit-hook.

I have made a really simple example of just two files. In my repository I have the following files.
branches\feature\test\test\test\New Text Document.txt
hooks\client\test\test\run.js

so you're now on a branch. Please have a look at the docs:
and read about the difference between %REPOROOT% and %REPOROOT+% 


Jens Frøkjær

unread,
Oct 9, 2020, 2:44:00 PM10/9/20
to TortoiseSVN
Thanks Stefan.

WOW, that is absolutely not how I read the docs. I obviously tried changing when you suggest this. But I would read it completely differently. Maybe my SVN-lingo is not up to par, but I dont understand how my working copy has changed? Is my working copy not my entire check out? The top folder with the green checkmark? I dont check out my branch.

Non the less, thank you for clarifying.
Reply all
Reply to author
Forward
0 new messages