From: Junio C Hamano <gitster@pobox•com>
To: "Yi\, EungJun" <semtlenori@gmail•com>
Cc: Git List <git@vger•kernel.org>
Subject: Re: How to send a warning message from git hosting server?
Date: Sun, 05 Apr 2015 13:18:47 -0700 [thread overview]
Message-ID: <xmqqzj6mcorc.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <CAFT+Tg-Gwr9EemFv88+=Ao21dGYe73D-CDiT4mXU4kuP-niOSw@mail.gmail.com> (EungJun Yi's message of "Mon, 6 Apr 2015 00:04:43 +0900")
"Yi, EungJun" <semtlenori@gmail•com> writes:
> Hello. I am serving a git hosting service for my company.
>
> Sometimes I want to send a warning message to users who use my
> service; e.g. the service will be shutdown tomorrow for a while
> temporary.
>
> I know it is possible to a remote message by hooks or HTTP body if an
> error occured. But it seems that there is no hooks for git-fetch and
> git does not print HTTP body if there is no error.
>
> I want a way to response a remote message when a client send any kind
> of request. Is it possible?
I do not offhand know if there are such hooks, but I would imagine
that I'd be mightily annoyed if I were forced to interact with such
a server. I may not have a need to pull anything for a few days,
working on my changes, and then I'd find out when the service is
already down. I may pull many times a day, and for a few days of
pre-announcement period, I'd be forced to see the same message over
and over. I may have a cron job to fetch down the changes made by
coworkers in other timezones while I am sleeping so that I can start
my day from an up-to-date state, but it is very likely I would say
"fetch --quiet" in the cron job because I want it to be quiet unless
there is an error.
I'd appreciate if the Gitmasters at the company sent an e-mail
addressed to git-users@mycompany•xz instead.
next prev parent reply other threads:[~2015-04-05 20:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-05 15:04 How to send a warning message from git hosting server? Yi, EungJun
2015-04-05 20:18 ` Junio C Hamano [this message]
2015-04-08 11:08 ` Tony Finch
2015-04-12 11:25 ` Yi, EungJun
2015-04-15 10:28 ` Sitaram Chamarty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqzj6mcorc.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=semtlenori@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox