getting old branches/releases

Howdy!
I'm trying to get the 3.3 and 3.4 branches so I can check my libraries compatibility with older versions, but I do not see those branches as being available:
$ git branch --remote 89 remotes/upstream/2.7 remotes/upstream/3.5 remotes/upstream/3.6 remotes/upstream/3.7 remotes/upstream/3.8 remotes/upstream/buildbot-custom remotes/upstream/master
How can I get those?
-- ~Ethan~

On Tue, Feb 11, 2020 at 3:49 PM Ethan Furman <ethan@stoneleaf.us> wrote:
I'm trying to get the 3.3 and 3.4 branches so I can check my libraries compatibility with older versions, but I do not see those branches as being available:
How can I get those?
3.3 and 3.4 existed before the migration from GitHub, so we don't have the branches.
They are in the repo as git tags.
Try:
# list all git tags matching v.3.3 git tag -l 'v3.3*'
# checkout the v.3.3.0 tag to a local branch git checkout tags/v.3.3.0 -b my-own-3.3.0-branch

On 02/11/2020 04:04 PM, Mariatta wrote:
On Tue, Feb 11, 2020 at 3:49 PM Ethan Furman wrote:
I'm trying to get the 3.3 and 3.4 branches so I can check my libraries' compatibility with older versions, but I do not see those branches as being available:
How can I get those?
3.3 and 3.4 existed before the migration from GitHub, so we don't have the branches.
They are in the repo as git tags.
Try:
# list all git tags matching v.3.3 git tag -l 'v3.3*'
# checkout the v.3.3.0 tag to a local branch git checkout tags/v.3.3.0 -b my-own-3.3.0-branch
Nice! Many thanks!
-- ~Ethan~

Great! Perhaps we should have this info in devguide. https://github.com/python/devguide/issues/572 Welcoming PR.

On Feb 11, 2020, at 19:26, Ethan Furman <ethan@stoneleaf.us> wrote:
On 02/11/2020 04:04 PM, Mariatta wrote:
On Tue, Feb 11, 2020 at 3:49 PM Ethan Furman wrote:
I'm trying to get the 3.3 and 3.4 branches so I can check my libraries' compatibility with older versions, but I do not see those branches as being available: How can I get those? 3.3 and 3.4 existed before the migration from GitHub, so we don't have the branches. They are in the repo as git tags. Try: # list all git tags matching v.3.3 git tag -l 'v3.3*' # checkout the v.3.3.0 tag to a local branch git checkout tags/v.3.3.0 -b my-own-3.3.0-branch
Nice! Many thanks!
It's a bit simpler than that. You don't need to specify tags/
when referencing tags.
git checkout v3.3.7 # for final 3.3 release (in detached HEAD mode)
git checkout v3.3.7 -b v3.3.7 # to also create a local branch
git checkout 3.3 -b 3.3 # for the final state of the 3.3 branch
https://git-scm.com/book/en/v2/Git-Basics-Tagging
-- Ned Deily nad@python.org -- []

I'm trying to get the 3.3 and 3.4 branches so I can check my libraries compatibility with older versions, but I do not see those branches as being available:
How can I get those?
3.3 and 3.4 existed before the migration from GitHub, so we don't have the branches.
They are in the repo as git tags.
Try:
# list all git tags matching v.3.3 git tag -l 'v3.3*'
# checkout the v.3.3.0 tag to a local branch git checkout tags/v.3.3.0 -b my-own-3.3.0-branch
I remember a few years ago the older Git branches were changed to tags, to get rid of them from Git Hub's list of branches I think. Maybe these tags are what you are after (note there is no v prefix):
$ git ls-remote git://github.com/python/cpython [thousands of PR branches etc skipped] 4dea2538537ba8ef14e4296217abcd7a45cb25ce refs/tags/3.3 bf9cccb2b54ad2c641ea78435a8618a6d251491e refs/tags/3.3^{} 6bedc750c2d3ca75671c3a6b261592455e0f5850 refs/tags/3.4 05c28b08f6e2fc8782472b026c98a3fdd61a2ba9 refs/tags/3.4^{}
participants (4)
-
Ethan Furman
-
Mariatta
-
Martin Panter
-
Ned Deily