From: Burke Cates <burke.cates@gmail.com>
To: git@vger.kernel.org
Subject: Three-tiered VM development setup with support for branch switching
Date: Wed, 19 May 2010 20:59:50 -0400 [thread overview]
Message-ID: <AANLkTinQJLsS6N_d2hsfwbibEuKiUHi9FAnrb5K4Frih@mail.gmail.com> (raw)
I read Joe Maller's blog post "A web-focused Git workflow" (
http://joemaller.com/2008/11/25/a-web-focused-git-workflow/ ) and
thought this would be a great replacement for our current
scm/development workflow at my job, which I won't get into here. My
main concern with switching to a three-tiered setup using Git is that
switching branches on a workstation and pushing to the "hub" repo
would result in no change in the "prime" repo when "hub"'s post-update
hook runs, as it will not switch branches.
The only solution I can think of involves ripping the branch out of
the refspec that is passed to the hook and using that to call checkout
and pull (or possibly a checkout -b --track newbranch if I dont have
the branch locally on prime). I feel like this is a pretty nasty hack,
but I might be missing something completely that would make this sort
of setup much easier to pull off.
What I'm trying to pull off here is this: devs can code at their
workstations with whatever tools they want, and push changes to the
VM's with git. Hooks will be used to initiate makes for testing and
for pushing changes to other nodes in the test-cluster (who will have
the same make hook). The only obstacle at this point is the branch
switching.
next reply other threads:[~2010-05-20 1:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-20 0:59 Burke Cates [this message]
2010-05-20 8:37 ` Three-tiered VM development setup with support for branch switching Ævar Arnfjörð Bjarmason
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=AANLkTinQJLsS6N_d2hsfwbibEuKiUHi9FAnrb5K4Frih@mail.gmail.com \
--to=burke.cates@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).