git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* post-update hook
@ 2008-11-13 15:53 Jeremy Ramer
  2008-11-13 17:08 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Ramer @ 2008-11-13 15:53 UTC (permalink / raw)
  To: git

I have a set up where I have a local git repo (local1) that I make
changes to and two public repos (remote1, remote2) that hold the
current state of the repo for other applications to access.  So my
plan is to make the change is local1, then
git commit
git push remote1 master
git push remote2 master

However, the remotes currently have master checked out so though the
repo gets updated the working directory does not.  I tried editting
the post-update hook as follows

#!/bin/sh
echo Update changes...
git checkout master .

but it does not seem to make any difference.  Am I missing something
in the way post-update works?  It would be really nice to get this
working so I don't have to log into each remote and do a pull.  local1
is running git version 1.6.0.2. remotes are running git version 1.5.6.

Thanks!
Jeremy

^ permalink raw reply	[flat|nested] 5+ messages in thread
* post-update hook
@ 2009-06-07 13:39 Soham Mehta
  0 siblings, 0 replies; 5+ messages in thread
From: Soham Mehta @ 2009-06-07 13:39 UTC (permalink / raw)
  To: git

Wondering why there isn't a post-update (post-reset, post-cherrypick 
etc) hook in git? Is it only a matter of creating one, or is there a reason?

Thanks.
-Soham

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

end of thread, other threads:[~2009-06-07 14:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-13 15:53 post-update hook Jeremy Ramer
2008-11-13 17:08 ` Junio C Hamano
2008-11-13 18:48   ` Jeremy Ramer
2008-11-13 22:06     ` Junio C Hamano
  -- strict thread matches above, loose matches on Subject: below --
2009-06-07 13:39 Soham Mehta

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