Re: Git conversion status

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Git conversion status
Date: 2010-09-21 17:32:15
Message-ID: 1285089787-sup-144@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Excerpts from Magnus Hagander's message of lun sep 20 12:49:28 -0400 2010:

> Committers can (and should! please test!) clone from git clone
> ssh://git(at)gitmaster(dot)postgresql(dot)org/postgresql.git.
>
> Please do *NOT* commit or push anything to this repository yet though:
> The repo is there - all the scripts to manage it are *not*. So don't
> commit until I confirm that it is.
>
> But please clone and verify the stuff we have now.

I tried to follow the instructions on the Wiki but they didn't work.
The ones under the heading "Dependent Clone per Branch, Pushing and
Pulling From a Local Repository" that is.

What I find is that after doing the local clone for the branch, i.e.
git clone postgresql REL9_0_STABLE
this clones only the "master" branch somehow, not the other branches; so
when I later run
git checkout REL9_0_STABLE
on that clone, it fails with this message:

$ git checkout REL9_0_STABLE
error: pathspec 'REL9_0_STABLE' did not match any file(s) known to git.

So I first need to checkout each branch on the "postgresql" clone (the
one tracking the remote), and then do the local clone. So the
instructions are:

branches="REL9_0_STABLE REL8_4_STABLE REL8_3_STABLE REL8_2_STABLE REL8_1_STABLE REL8_0_STABLE REL7_4_STABLE"

pushd postgresql/
for i in $branches; do git checkout $i; done
popd

for i in $branches; do git clone postgresql $i --branch $i; done

and then set the config variables on each clone, as specified.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sushant Sinha 2010-09-21 17:38:32 Re: Configuring Text Search parser?
Previous Message Magnus Hagander 2010-09-21 17:18:20 Re: .gitignore files, take two