From: "Jeremy Ramer" <jdramer@gmail.com>
To: git@vger.kernel.org
Subject: post-update hook
Date: Thu, 13 Nov 2008 08:53:28 -0700 [thread overview]
Message-ID: <b9fd99020811130753o13c5aa0cj79126a502d449cde@mail.gmail.com> (raw)
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
next reply other threads:[~2008-11-13 15:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-13 15:53 Jeremy Ramer [this message]
2008-11-13 17:08 ` post-update hook 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
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=b9fd99020811130753o13c5aa0cj79126a502d449cde@mail.gmail.com \
--to=jdramer@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).