Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 564638

Summary: dev-vcs/git-2.6.5 pull no longer supports "-u" update command
Product: Gentoo Linux Reporter: Steve Arnold <nerdboy>
Component: EclassesAssignee: Robin Johnson <robbat2>
Status: RESOLVED OBSOLETE    
Severity: major CC: grknight, polynomial-c
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Steve Arnold archtester gentoo-dev 2015-11-01 16:19:06 UTC
Is it too old to fix?

 * Package:    xfce-extra/xfce4-soundmenu-plugin-9999
 * Repository: nerdboy-local
 * Maintainer: xfce@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc glyr kernel_linux keybinder lastfm u
serland_GNU
 * FEATURES:   ccache distcc preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
Already on 'master'
Your branch is up-to-date with 'origin/master'.
error: unknown switch `u'
usage: git pull [options] [<repository> [<refspec>...]]

    -v, --verbose         be more verbose
    -q, --quiet           be more quiet
    --progress            force progress reporting
Comment 1 Steve Arnold archtester gentoo-dev 2015-11-01 21:20:58 UTC
Amazingly, this works at a shell prompt: git fetch -u

So I'm a little puzzled why git-2 barfs with the "-u" error.
Comment 2 Steve Arnold archtester gentoo-dev 2015-11-01 21:23:36 UTC
And I removed "-u" from the two commands in git-2.eclass and the package merges fine.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2015-11-10 14:51:09 UTC
(In reply to Steve Arnold from comment #1)
> Amazingly, this works at a shell prompt: git fetch -u
> 
> So I'm a little puzzled why git-2 barfs with the "-u" error.

The reason is that 'git pull' no longer has the -u flag (bug?) but is still in the man page. dev-vcs/git-2.6.3 tested.

Works on git-2.4.10
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2020-12-07 07:32:20 UTC
I believe this ticket is obsolete, if the problem persists, please reopen