Re: [PATCH] add a 'pre-push' hook

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

 



If the patch is acceptable, I will update the githooks doc with more
information, but we would like this so that you could add a hook that
runs your automated tests before a push would go through.

Scott

On Tue, Aug 19, 2008 at 11:58 AM, Jeff King <peff@xxxxxxxx> wrote:
> On Tue, Aug 19, 2008 at 11:55:27AM -0700, Scott Chacon wrote:
>
>> This commit adds support for a 'pre-push' hook that can be called before
>> a `git push` command.
>>
>> It takes no arguments currently, but if the .git/hooks/pre-push script
>> exists and is executable, it will be called before the 'git push' command
>> and will stop the push process if it does not exit with a 0 status.
>>
>> This hook can be overridden by passing in the --no-verify or -n option to
>> git push.  Documentation and tests have been updated to reflect the change.
>
> Would you care to describe what this is useful for (either in
> documentation, to help potential users, or at least in the commit log,
> so we know there is a need that is not otherwise fulfilled)?
>
> -Peff
>
--
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]

  Powered by Linux