Hello,

We have setup a pre-commit-hook script on the client side, which 
uncrustifies every file before commiting them. It works perfectly, but when 
we create a branch we get the following error : A parameter cannot be found 
that matches parameter name '2'.

When we commit a file we get the following arguments for the script (as 
described in the help) ->  4.30.8. Client Side Hook Scripts
PATH DEPTH MESSAGEFILE CWD

But when we create a branch we get the following arguments for the script:
PATHand in parameter name '2': MESSAGEFILEthe other parameter are empty

the powershell script:param ( [Parameter(Mandatory=$true)] 
[string]$tortoiseFile, 
#path to temp file with file list [Parameter(Mandatory=$false)] [string]$arg1, 
# dept [Parameter(Mandatory=$false)] [string]$arg2, # messagefile 
[Parameter(Mandatory=$false)] [string]$arg3, # cwd = repo 
[Parameter(Mandatory=$false)] [string]$arg4, # not used 
[Parameter(Mandatory=$false)] [string]$2     # in case of a branch, here 
comes the messagefile)
without the parameter $2, the script fails
I would expect, that we get the same parameters when we commit some files 
as when we create a branch
As a workaround add the last two lines in the scriptBut I would likely have 
it fixed
Of course we used the last version (1.9.7 Build 27907)

-- 
You received this message because you are subscribed to the Google Groups 
"TortoiseSVN" 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/tortoisesvn/c01ac77b-533b-4b5a-b1c7-30bdf2a5cfe2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to