I want to integrate a remote git repository with an RTC server using their RESTful interface to attach a link to gitweb for commit related to a specific task.
Ideally, this will be done with a post-receive hook on the git server, but the processing user who runs git is not allowed for the user account for authentication in RTC.
The best solution I can think of is to somehow pass the authentication token (acquired from RTC as a cookie.txt) along with pressing git (but not having it part of the commit).
An alternative would be a post-push hook in each client repository, but it has its own problems (including that there is no such hook).
source share