Re: Working with git repo tagged versions

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Robert Treat <rob(at)xzilla(dot)net>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Working with git repo tagged versions
Date: 2011-11-11 21:01:52
Message-ID: 1321045253-sup-7955@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Excerpts from Robert Treat's message of vie nov 11 17:18:43 -0300 2011:
> Howdy folks,
>
> 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.

Maybe the github clone can be helpful -- for example try an URL such as

https://github.com/postgres/postgres/tarball/cf22e851b6ae8737f3e767dffcadf1722fbb36a7

--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-11-11 21:01:54 Re: why do we need two snapshots per query?
Previous Message Bruce Momjian 2011-11-11 20:53:05 Re: Working with git repo tagged versions