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': MESSAGEFILE- the 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)