Hello Gaurav,
No, it can't. Git hooks that run on the local repository won't necessarily
run on the remotes.
What happens here is that developer who ran git-reset will send a ref
update to the remote (gitolite); that's what you can log. However, Git by
itself is not capable of logging. You will
Thanks for the pointer Gergely! I'll have a look into it and see how i can
implement it.
Regards,
Gaurav
On Sun, Feb 22, 2015 at 2:09 PM, Gergely Polonkai gerg...@polonkai.eu
wrote:
Hello Gaurav,
No, it can't. Git hooks that run on the local repository won't necessarily
run on the remotes.
Logging pushes is a bit tricky, as push such operation doesn't have an
associated user record (ie. pushes don't have authors nor committers).
If your developers use different user accounts for pushing to the
repository, though, you may implement a git hook that runs after each ref
update. Note
Hi Gergely,
We use Gitolite only for access control. As you mentioned, it runs as a
common user and each user has its own user id which they use for accessing
Git repositories.
What i do understand is that we can definitely implement hook (and we do
have one) when a user pushes something to a
Thanks for the reply Gergely! I am wondering how can we log pushes and
whether push logs will contain details about 'git reset'. Can you please
help me with the command (not the exact syntax) or some link which i can
refer to, to implement logging for pushes?
On Sat, Feb 21, 2015 at 2:16 PM,