Since SSH URI's in Stash have the username set to "git", is the username of the current user available to server side git hooks like pre-commit? We'd like to be able to restrict commits to specific repositories or branches to select users.
The current user is available to all of git's hooks whether it be via SSH or HTTP/HTTPS through the REMOTE_USER environment variable. In HTTP we resolve the user via their basic authentication credentials. In SSH we resolve the user via their SSH key.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.