The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Porter Bassett
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Porter Bassett
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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.

TAGS
AUG Leaders

Atlassian Community Events