From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Robert Treat <rob(at)xzilla(dot)net> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Working with git repo tagged versions |
Date: | 2011-11-11 21:41:49 |
Message-ID: | 11880.1321047709@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Robert Treat <rob(at)xzilla(dot)net> writes:
> Occasionally I need to grab an older release from git based on a tag
> rather than a branch, eg the REL8_3_10 tag vs the REL8_3_STABLE
> branch. I used to know how to do this in CVS, but I find I tend to
> revert to grabbing tarballs now that we're on git. So, I'm wondering
> if anyone knows a way to do this directly from git clone (or similar),
> and ideally as a shallow clone (ie. I just need a copy of the code at
> that tag, rather than needing the repo for development purposes). If
> anyone knew a way to do this down to a specific commit, that would
> also be interesting to know. Thanks in advance.
FWIW, this is what we use in the script that makes release tarballs:
export GIT_DIR=[ where your git clone is ]
git archive ${COMMITHASH} | tar xf - -C pgsql
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2011-11-11 21:53:12 | Re: why do we need two snapshots per query? |
Previous Message | Andrew Dunstan | 2011-11-11 21:35:50 | Re: Working with git repo tagged versions |