Skip to contentSkip to conversation

Problem with wireless-2.6

DISCUSSION Larry Finger 4 participants 7 messages Nov 5, 2007 – Nov 6, 2007 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 14 lines · Larry Finger

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.

Quoted 5 lines

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

#2 lore raw
In reply to Larry Finger
Quoted 4 lines · Larry Finger

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

Quoted 6 lines

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.

Quoted 1 line

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."
-
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

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

#4 lore raw
Quoted 2 lines · John W. Linville

Well, I'm not sure. What is the purpose of your 'git pull'?

To get the latest everything branch.

Quoted 11 lines

What is the head commit on your everything branch? At present, it should be:

	commit 792296c80171081ab1eeb59a206aed651a27fcb0
	Merge: 0119130... 286c21f...
	Author: John W. Linville <[email protected]>
	Date:   Fri Nov 2 17:14:55 2007 -0400

	    Merge branch 'ath5k' into everything

FWIW, 'git describe' on my everything branch also returns v2.6.24-rc1-155-g792296c. What makes you think this is wrong?

That was after I repulled the entire tree. Before it was at 2.6.23-rc9.

Quoted 1 line

From other comments, I think I needed a git rebase command.

Larry

#5 lore raw
Quoted 1 line · Larry Finger
Quoted 1 line

From other comments, I think I needed a git rebase command.

I don't think so. Do you have set branch.autosetupmerge to false?

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."
-
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
In reply to Larry Finger

Hello, Larry!

Quoted 7 lines · Larry Finger

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

Quoted 6 lines

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.

Signature · 2 lines
Regards,
Pavel Roskin
#7 lore raw
Quoted 10 lines · Pavel Roskin

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]$

Quoted 9 lines

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