I have a custom pre-receive hook GitBlit made in Groovy. I would like to read a versionned file in the current repository and extract its content in a string.
I already saw {repository} and {user} vars to get the absolute path of the repository, but nothing found.
Do you know any parameter or tool function to get path (or content) of this file ? Thanks
I found the solution consulting this page. There is tools functions in
com.gitblit.utils.JGitUtilsandcom.gitblit.GitBlitwho allow to get file content as a string.Documentation is available here