Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

What does the "Verify Committer" pre-receive hook do?

Porter Bassett February 12, 2020

I enabled the Verify Committer hook in my repository.

If I spoof the author of a commit with the --author "Bogus Author <should.not.be@allowed.upload>"  flag for `git commit`, I would expect my commit to be rejected when I try push it.

This does not happen.

According to this question , the hook doesn't check against the author in the git commit.

So, if it doesn't do that, what *does* it do?

1 answer

1 accepted

1 vote
Answer accepted
Porter Bassett February 13, 2020

The answer to my question is that the Verify Commiter hook verifies the committer of a commit, not the author.

the --author flag in `git commit`  only changes the author.  It does not change the committer.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events