* How-to checkin git hook
@ 2009-08-17 20:15 Joe D'Abbraccio
2009-08-17 20:26 ` Erik Faye-Lund
2009-08-17 20:27 ` Alex Riesen
0 siblings, 2 replies; 4+ messages in thread
From: Joe D'Abbraccio @ 2009-08-17 20:15 UTC (permalink / raw)
To: git
I have not been able to find out how to commit and push a hook to my git
server archive for everyone's benefit. The githooks man page does not
describe this and I have not turned up any fruitful google searches on
the topic.
I am trying to add a post-checkout hook. I also noticed that the
post-checkout sample does not exist when I init a new archive. Is this a
bug? I am running git version 1.6.0.2.
Regards,
Joe
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How-to checkin git hook
2009-08-17 20:15 How-to checkin git hook Joe D'Abbraccio
@ 2009-08-17 20:26 ` Erik Faye-Lund
2009-08-17 20:27 ` Alex Riesen
1 sibling, 0 replies; 4+ messages in thread
From: Erik Faye-Lund @ 2009-08-17 20:26 UTC (permalink / raw)
To: Joe D'Abbraccio; +Cc: git
On Mon, Aug 17, 2009 at 10:15 PM, Joe D'Abbraccio<dajoe13@gmail.com> wrote:
> I am trying to add a post-checkout hook. I also noticed that the
> post-checkout sample does not exist when I init a new archive. Is this a
> bug?
No, it's security. Hooks are executable files and shouldn't blindly be
copied around for security reasons.
--
Erik "kusma" Faye-Lund
kusmabite@gmail.com
(+47) 986 59 656
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How-to checkin git hook
2009-08-17 20:15 How-to checkin git hook Joe D'Abbraccio
2009-08-17 20:26 ` Erik Faye-Lund
@ 2009-08-17 20:27 ` Alex Riesen
2009-08-17 20:46 ` Joe D'Abbraccio
1 sibling, 1 reply; 4+ messages in thread
From: Alex Riesen @ 2009-08-17 20:27 UTC (permalink / raw)
To: Joe D'Abbraccio; +Cc: git
On Mon, Aug 17, 2009 at 22:15, Joe D'Abbraccio<dajoe13@gmail.com> wrote:
> I have not been able to find out how to commit and push a hook to my git
> server archive for everyone's benefit. The githooks man page does not
> describe this and I have not turned up any fruitful google searches on the
> topic.
>
> I am trying to add a post-checkout hook. I also noticed that the
> post-checkout sample does not exist when I init a new archive. Is this a
> bug? I am running git version 1.6.0.2.
No. It didn't occurred to anyone before to push repository's configuration
and service files (the hooks). Everybody just copied them into the server
repositories or edited them in place.
If the server is a public place like github, it is not very likely they allow
you to run anything you like on their servers (and hooks are programs).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How-to checkin git hook
2009-08-17 20:27 ` Alex Riesen
@ 2009-08-17 20:46 ` Joe D'Abbraccio
0 siblings, 0 replies; 4+ messages in thread
From: Joe D'Abbraccio @ 2009-08-17 20:46 UTC (permalink / raw)
To: Alex Riesen; +Cc: git
Thanks for the info.
How do people typically manage the hooks for their projects? These may
change over the life of the project and may be project version
dependent. Is the best way to place them into another subdir within
your project with instructions on updating the hooks files? Looks like
a step that would be prone to errors though.
And how about the fact that post-checkout.sample is missing in the
release I am using. Is this the only one missing or are there others?
It would also be a good idea if the githooks man page explains this.
Maybe when I better understand how hooks are best managed, I will
provide my thoughts on the man page.
Regards,
Joe
Alex Riesen wrote:
> On Mon, Aug 17, 2009 at 22:15, Joe D'Abbraccio<dajoe13@gmail.com> wrote:
>> I have not been able to find out how to commit and push a hook to my git
>> server archive for everyone's benefit. The githooks man page does not
>> describe this and I have not turned up any fruitful google searches on the
>> topic.
>>
>> I am trying to add a post-checkout hook. I also noticed that the
>> post-checkout sample does not exist when I init a new archive. Is this a
>> bug? I am running git version 1.6.0.2.
>
> No. It didn't occurred to anyone before to push repository's configuration
> and service files (the hooks). Everybody just copied them into the server
> repositories or edited them in place.
>
> If the server is a public place like github, it is not very likely they allow
> you to run anything you like on their servers (and hooks are programs).
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-17 20:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-17 20:15 How-to checkin git hook Joe D'Abbraccio
2009-08-17 20:26 ` Erik Faye-Lund
2009-08-17 20:27 ` Alex Riesen
2009-08-17 20:46 ` Joe D'Abbraccio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox