Re: Suggestion and question about hooks

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

 



Renato Ramos Ribeiro Araujo <renatorraraujo@xxxxxxxxx> writes:

> Why git does not have a hook 'post-push'?

You may want to look for "(five) valid reasons to have hook" in the
list archive.

It depends on what it does, but if it always runs after user does
"git push", or it always runs if "git push" finishes without an
error, then such a customization does not deserve to be a hook.

	$ cat >$HOME/bin/git-mypush <<-\EOF
	#!/bin/sh
	git push "$@" && {
		... write whatever your post-push would do here ...
	}
	EOF

would work just fine without any change to git itself.



[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