2007-11-05 17:49:32

by Larry Finger

[permalink] [raw]
Subject: Problem with wireless-2.6

John,

I did the following set of steps:

git clone --reference ~/linux-2.6 \
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git junk

cd junk
git checkout -b everything origin/everything
git pull
Warning: No merge candidate found because value of config option
"branch.everything.merge" does not match any remote branch fetched.
No changes.

I know that when I get the above warning, my branch "everything" is never updated. My previous
wireless-2.6 tree was stuck at 2.6.23-rc9, whereas "git describe" lists the new tree at
v2.6.24-rc1-155-g792296c.

What am I doing wrong?

Larry



2007-11-06 02:10:40

by Pavel Roskin

[permalink] [raw]
Subject: Re: Problem with wireless-2.6

Hello, Larry!

On Mon, 2007-11-05 at 11:49 -0600, Larry Finger wrote:
> John,
>
> I did the following set of steps:
>
> git clone --reference ~/linux-2.6 \
> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git junk
>
> cd junk
> git checkout -b everything origin/everything
> git pull
> Warning: No merge candidate found because value of config option
> "branch.everything.merge" does not match any remote branch fetched.
> No changes.

Just add "--track" to the git-checkout command, and it will be fine:

[proski@dv junk]$ git checkout --track -b everything origin/everything
Branch everything set up to track remote branch refs/remotes/origin/everything.
Switched to a new branch "everything"
[proski@dv junk]$ git-pull
Already up-to-date.
[proski@dv junk]$

Or better yet, add this to ~/.gitconfig:

[branch]
autosetupmerge = true

This would be equivalent to using "--track" by default. Please make
sure you have a recent version of git, as --track appeared first in
git-1.5.1.

--
Regards,
Pavel Roskin


2007-11-05 18:27:35

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: Problem with wireless-2.6

On 11/5/07, Larry Finger <[email protected]> wrote:
> John,
>
> I did the following set of steps:
>
> git clone --reference ~/linux-2.6 \
> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git junk
>
> cd junk
> git checkout -b everything origin/everything
> git pull
> Warning: No merge candidate found because value of config option
> "branch.everything.merge" does not match any remote branch fetched.
> No changes.
>
> I know that when I get the above warning, my branch "everything" is never updated. My previous
> wireless-2.6 tree was stuck at 2.6.23-rc9, whereas "git describe" lists the new tree at
> v2.6.24-rc1-155-g792296c.
>
> What am I doing wrong?

I am not sure if you can 'pull' from a branch, I think have to pull
from the master and then rebase on the brancehs:

git-checkout master
git-pull
git-checkout junk
git-rebase origin/everything

Luis

2007-11-06 03:45:51

by Larry Finger

[permalink] [raw]
Subject: Re: Problem with wireless-2.6

Pavel Roskin wrote:
>
> Just add "--track" to the git-checkout command, and it will be fine:
>
> [proski@dv junk]$ git checkout --track -b everything origin/everything
> Branch everything set up to track remote branch refs/remotes/origin/everything.
> Switched to a new branch "everything"
> [proski@dv junk]$ git-pull
> Already up-to-date.
> [proski@dv junk]$
>
> Or better yet, add this to ~/.gitconfig:
>
> [branch]
> autosetupmerge = true
>
> This would be equivalent to using "--track" by default. Please make
> sure you have a recent version of git, as --track appeared first in
> git-1.5.1.
>

Pavel,

Thanks. I deleted the everything branch and recreated it with --track, and all is good.

Larry

2007-11-05 18:40:45

by Andreas Schwab

[permalink] [raw]
Subject: Re: Problem with wireless-2.6

Larry Finger <[email protected]> writes:

> I did the following set of steps:
>
> git clone --reference ~/linux-2.6 \
> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.g=
it junk
>
> cd junk
> git checkout -b everything origin/everything
> git pull
> Warning: No merge candidate found because value of config option
> "branch.everything.merge" does not match any remote branch f=
etched.
> No changes.

What do you get from `git remote show origin'?

Andreas.

--=20
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany
PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4=
ED5
"And now for something completely different."