git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to send a warning message from git hosting server?
@ 2015-04-05 15:04 Yi, EungJun
  2015-04-05 20:18 ` Junio C Hamano
  2015-04-08 11:08 ` Tony Finch
  0 siblings, 2 replies; 5+ messages in thread
From: Yi, EungJun @ 2015-04-05 15:04 UTC (permalink / raw)
  To: Git List

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?

-EungJun

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to send a warning message from git hosting server?
  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
  2015-04-08 11:08 ` Tony Finch
  1 sibling, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2015-04-05 20:18 UTC (permalink / raw)
  To: Yi, EungJun; +Cc: Git List

"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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to send a warning message from git hosting server?
  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
@ 2015-04-08 11:08 ` Tony Finch
  2015-04-12 11:25   ` Yi, EungJun
  1 sibling, 1 reply; 5+ messages in thread
From: Tony Finch @ 2015-04-08 11:08 UTC (permalink / raw)
  To: Yi, EungJun; +Cc: Git List

Yi, EungJun <semtlenori@gmail.com> wrote:
>
> I want a way to response a remote message when a client send any kind
> of request. Is it possible?

Yes, though you need a wrapper around git. Recent versions of gitolite
have a "motd" message of the day feature.

http://gitolite.com/gitolite/list-non-core.html#triggers

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Fisher: Northwest backing southwest 4 or 5, occasionally 6 at first. Slight or
moderate. Fog patches. Moderate or good, occasionally very poor.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to send a warning message from git hosting server?
  2015-04-08 11:08 ` Tony Finch
@ 2015-04-12 11:25   ` Yi, EungJun
  2015-04-15 10:28     ` Sitaram Chamarty
  0 siblings, 1 reply; 5+ messages in thread
From: Yi, EungJun @ 2015-04-12 11:25 UTC (permalink / raw)
  To: Tony Finch; +Cc: Git List

On Wed, Apr 8, 2015 at 8:08 PM, Tony Finch <dot@dotat.at> wrote:
> Yi, EungJun <semtlenori@gmail.com> wrote:
>>
>> I want a way to response a remote message when a client send any kind
>> of request. Is it possible?
>
> Yes, though you need a wrapper around git. Recent versions of gitolite
> have a "motd" message of the day feature.

It sounds nice. Is the wrapper for git client or git server?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to send a warning message from git hosting server?
  2015-04-12 11:25   ` Yi, EungJun
@ 2015-04-15 10:28     ` Sitaram Chamarty
  0 siblings, 0 replies; 5+ messages in thread
From: Sitaram Chamarty @ 2015-04-15 10:28 UTC (permalink / raw)
  To: semtlenori, Tony Finch; +Cc: Git List

On 04/12/2015 04:55 PM, Yi, EungJun wrote:
> On Wed, Apr 8, 2015 at 8:08 PM, Tony Finch <dot@dotat.at> wrote:
>> Yi, EungJun <semtlenori@gmail.com> wrote:
>>>
>>> I want a way to response a remote message when a client send any kind
>>> of request. Is it possible?
>>
>> Yes, though you need a wrapper around git. Recent versions of gitolite
>> have a "motd" message of the day feature.
> 
> It sounds nice. Is the wrapper for git client or git server?

Gitolite is -- in this context -- a wrapper on the git server.

It's main purpose is access control; the motd feature is just an extra that just happened to be easy once there was a wrapper anyway.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-15 10:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2015-04-08 11:08 ` Tony Finch
2015-04-12 11:25   ` Yi, EungJun
2015-04-15 10:28     ` Sitaram Chamarty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).