Skip to content
Advertisement

subversion pre-commit hook error code 255

I added pre-commit hook script to the repository.

It always gives below error while committing:

JavaScript

I have already checked that my pre-commit script is having executable permission and its a bash script.

JavaScript

is added in the beginning of the file.

Even if I write

JavaScript

in the beginning of the file, it is not allowing me to commit and giving the same 255 error.

Now my script looks like:

JavaScript

and I am again getting the same error while committing.

I just want to know what is error code 255 and how can I make my pre-commit script work properly?

Advertisement

Answer

There was some format issue. The file was in DOS format. I modified the format from dos to unix and it started working. I installed tool dos2unix and ran below command:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement