Skip to contentSkip to conversation

updating the source tree

DISCUSSION Grzesiek Sójka 2 participants 4 messages Oct 7, 2010 4 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi there,

I downloaded the nouveau/linux-2.6 using the following:
git clone --depth 1 git://anongit.freedesktop.org/nouveau/linux-2.6
Is there an easy way to update it to the current version (reversing all the changes I made) without downloading all the files again??

Thanks for your help in advance.

greg

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 7 lines · On Thu, 07 Oct 2010 19:34:35 +0200 Grzesiek Sójka…

Hi there,

I downloaded the nouveau/linux-2.6 using the following:
git clone --depth 1
git://anongit.freedesktop.org/nouveau/linux-2.6 Is there an easy way to update it to the current version (reversing all the changes I made) without downloading all the files again??

Yes, this should work:
http://nouveau.freedesktop.org/wiki/InstallDRM#UpdatingtheNouveaukernelgitrepository

That is, to fetch updates:

$ git remote update

and to reset your current checkout to nouveau/master:

$ git reset --hard origin/master

That should discard all commits and local changes you may have made. It will not remove temporary files or compilation results.

Signature · 2 lines
Pekka Paalanen
http://www.iki.fi/pq/

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 7 lines · On Thu, 07 Oct 2010 20:07:37 +0200 Grzesiek Sójka…
Quoted 6 lines · Pekka Paalanen
Quoted 3 lines · On Thu, 07 Oct 2010 19:34:35 +0200 Grzesiek…

I downloaded the nouveau/linux-2.6 using the following:
git clone --depth 1
git://anongit.freedesktop.org/nouveau/linux-2.6 Is there an

If you really did that

Quoted 4 lines · and then went into linux-2.6/ dir and said:
# git remote update
fatal: Not a git repository (or any parent up to mount
parent /home) Stopping at filesystem boundary
(GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

I don't understand. Somehow you have deleted the .git/ directory from that checkout. Or you have GIT_DIR environment variable set.

Quoted 6 lines

This probably means that to be able to update I need to download the nouveau/linux-2.6 using the

git remote add nouveau
git://anongit.freedesktop.org/nouveau/linux-2.6 git checkout -b nouveau-master nouveau/master

That works only if you already have a git repo. The previous error says you don't have. Furthermore, the exact commands you quoted do not actually download anything. You still need 'git remote update' before checkout to download.

Quoted 4 lines

instead of

git clone
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

This will clone Linus' git repo, after which you would use the 'git remote add' incatation to add nouveau repo.

Signature · 2 lines
Pekka Paalanen
http://www.iki.fi/pq/

A message that is not in the archive (sent off-list or not yet received): 20101007215505.5dc21006-cxYvVS3buNOdIgDiPM52R8c4bpwCjbIv@public.gmane.org

#7 lore raw
Quoted 7 lines · Pekka Paalanen
Quoted 4 lines · On Thu, 07 Oct 2010 20:07:37 +0200 Grzesiek…
Quoted 3 lines · Pekka Paalanen

On Thu, 07 Oct 2010 19:34:35 +0200
Grzesiek Sójka<[email protected]> wrote:

Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

I downloaded the nouveau/linux-2.6 using the following:
git clone --depth 1
git://anongit.freedesktop.org/nouveau/linux-2.6 Is there an

If you really did that
and then went into linux-2.6/ dir and said:

I did it in the directory _containing_ the linux-2.6 dir. So probably my mistake. I already downloaded the fresh version of the linux-2.6. I try to follow your advice next time.

Cheers.