if I understand right, if [ "$(which mairix)" ]; then mairix -Q; fi should also be a part of checkout, right?
also overriding update action is somewhat undesirable since it would require all of targets with such modified update be modified as well... or rely on some global variable encoding default update action may be there could be a way to "extend" update with additional commands? (smth like update += if [ "$(which mairix)" ]; then mairix -Q; fi ) On Thu, 26 Nov 2009, Joey Hess wrote: > One way to do this is to define repository-specific commands for update, etc. > For example, after updating my mail repo, I want to run mairix to update it, > so: > [mail] > checkout = git clone ssh://[email protected]/srv/git/joey/private/mail > update = git pull "$@"; if [ "$(which mairix)" ]; then mairix -Q; fi > This has been sufficient for me without specific pre and post hooks. > Can I close this bug? -- .-. =------------------------------ /v\ ----------------------------= Keep in touch // \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User ^^-^^ [175555] -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

