Re: Stop a git commit by a specific author using pre-commit hook

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Neal Kreitzinger <nkreitzinger@xxxxxxxxx> writes:

> ... at the point pre-commit is run git has not
> overriden GIT_AUTHOR_IDENT with your --author value, yet.  I don't
> know if that is a bug or not.  The prepare-commit-msg hook is the same
> way.

I'd call it a bug, as the command line --author should have the same
effect as GIT_AUTHOR_NAME and friends observable by the outside
world.

There are two slightly different approaches to solve this, that
share the first two preparatory commits.  I'll send out the
preparatory ones first and then show both of these approaches.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]