scm-manager icon indicating copy to clipboard operation
scm-manager copied to clipboard

User and Repository as env variable for hooks

Open misery opened this issue 5 years ago • 2 comments

Issue description

I develop a custom hook [1] for Mercurial and Git (experimental). It works for Mercurial really good with SCM-Manager and I tried git now. But it seems SCM-Manager do not provide env['REMOTE_USER'] and env['REPO_NAME'] to a pre-receive hook like it does for Mercurial.

So please add REMOTE_USER and REPO_NAME to git hooks, too.

[1] https://github.com/misery/ExtendedApproval/blob/master/contrib/mercurial_git_push.py

misery avatar Jul 30 '20 19:07 misery

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 30 '20 06:08 stale[bot]

🤔

misery avatar Aug 30 '20 08:08 misery